JSBoxedDartObject extension type
A Dart object that is wrapped with a JavaScript object so that it can be passed to JavaScript safely.
Unlike ExternalDartReference, this can be used as a JS type and is a subtype of JSAny. Users can also declare interop types using this as the representation type or declare interop members on this type.
Use this interface when you want to pass Dart objects within the same runtime through JavaScript. There are no usable members in the resulting JSBoxedDartObject.
See ObjectToJSBoxedDartObject.toJSBox to wrap an arbitrary Object.
- on
-
- JSBoxedDartObjectRepType
- Implemented types
- Available extensions
- @JS('Object')
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