isInstance method

bool isInstance(
  1. Object? instance
)

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;