isInstance static method

bool isInstance(
  1. ClassMirror classMirror,
  2. dynamic instance
)

Returns whether the specified object is an instance of the specified class.

  • classMirror - the class
  • instance - the object

Implementation

static bool isInstance(ClassMirror classMirror, instance)
  => isAssignableFrom(classMirror, reflect(instance).type);