toDartObject property

Object toDartObject

The Dart Object that this ExternalDartReference refers to.

When compiling to JavaScript, a Dart object is a JavaScript object, and therefore this directly returns the Dart object. When compiling to Wasm, an internal Wasm function is used to convert the opaque JavaScript value to the original Dart object.

Implementation

external Object get toDartObject;