asJSAny property

JSAny? get asJSAny

Casts an Object to a JSAny, in a graceful manner. Returns null if this instance is not a JS value. See isJSAny.

Implementation

JSAny? get asJSAny {
  final self = this;
  if (self == null) return null;
  return self.isA<JSAny>() ? self as JSAny : null;
}