toDartObject property

T toDartObject

The Dart value of type T 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 T get toDartObject;