isJavaScriptSimpleObject function Null safety
- 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;
}