isJSAny property

bool? get isJSAny

Returns true if this instance is a JSAny. Returns null if it's an ambiguous Dart/JS type: a JS value that is also a Dart List, Map or Function (for example, when compiled with dart2js, a Dart List is a JS Array).

Implementation

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

  if (self is List || self is Map || self is Function) return null;

  return true;
}