toJSBox property - ObjectToJSBoxedDartObject extension - dart:js_interop library (original) (raw)
JSBoxedDartObject gettoJSBox
A JavaScript object that wraps this Object.
There are no usable members in the resulting JSBoxedDartObject and you may get a new JSBoxedDartObject when calling toJSBox on the same DartObject.
Throws an Exception if this Object is a JavaScript value.
Unlike ObjectToExternalDartReference.toExternalReference, this returns a JavaScript value. Therefore, the representation is guaranteed to be consistent across all platforms and interop members can be declared onJSBoxedDartObjects.
Implementation
external JSBoxedDartObject get toJSBox;