checkType<T> method
- required dynamic data,
Determines if the variable is of the expected type.
Implementation
bool checkType<T>({required dynamic data}) {
return data is T;
}
Determines if the variable is of the expected type.
bool checkType<T>({required dynamic data}) {
return data is T;
}