isInstance method
Determines whether the argument is an instance of T
.
Use isDefaultValue to check whether something is a default value of this kind.
Implementation
bool isInstance(Object? instance) => instance is T;
Determines whether the argument is an instance of T
.
Use isDefaultValue to check whether something is a default value of this kind.
bool isInstance(Object? instance) => instance is T;