isJavaScriptSimpleObject function Null safety

bool isJavaScriptSimpleObject(
  1. dynamic value
)

Returns true if a given object is a simple JavaScript object.

Implementation

bool isJavaScriptSimpleObject(value) {
  final Object? proto = objectGetPrototypeOf(value);
  return proto == null || proto == objectPrototype;
}