checkType<T> method

bool checkType<T>({
  1. required dynamic data,
})

Determines if the variable is of the expected type.

Implementation

bool checkType<T>({required dynamic data}) {
  return data is T;
}