isJSObject property

bool? get isJSObject

Returns true if this instance is a JSObject. Returns null if it's an ambiguous Dart/JS type: a JS Array that is also a Dart List (when compiled with dart2js).

Implementation

bool? get isJSObject {
  final self = this;
  if (self == null) return false;
  if (!self.isA<JSObject>()) return false;

  if (self is List && self.isA<JSArray>()) return null;

  return true;
}