isObjectOrNull<T> function Null safety

bool isObjectOrNull<T>()

Implementation

bool isObjectOrNull<T>() {
  return T == Object || T == _typeDef<Object?>();
}