asJSObject property
JSObject?
get
asJSObject
Casts an Object to a JSObject, in a graceful manner.
Returns null if this instance is not a JS object.
See isJSObject.
Implementation
JSObject? get asJSObject {
final self = this;
if (self == null) return null;
return self.isA<JSObject>() ? self as JSObject : null;
}