JSObject extension type

The representation type of all JavaScript objects for extension types.

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

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

Constructors

JSObject()
Creates a new JavaScript object.
JSObject.fromInteropObject(Object interopObject)
Constructor to go from an object from previous interop, like the types from package:js or dart:html, to JSObject.

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