JSObject extension type

A JavaScript Object.

JSObject is the supertype of all JavaScript objects, but not other JS types, like primitives. See https://dart.cn/interop/js-interop for more details on how to use JavaScript interop.

When declaring interop extension types, JSObject is usually the type you will use as the representation type.

on
  • JSObjectRepType
Implemented types
Implementers
Annotations
  • @JS('Object')

Constructors

JSObject()
Creates a new empty JavaScript object.
JSObject.fromInteropObject(Object interopObject)
Creates a JSObject from an object provided by an earlier interop library.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited