canReflect method Null safety

  1. @override
bool canReflect(
  1. Object reflectee
)
inherited

Returns true if this reflector has capabilities for the given instance.

Implementation

@override
bool canReflect(Object reflectee) {
  return data[this]?.classMirrorForInstance(reflectee) != null;
}