Skip to content

ExternalDartReferenceToObject<T extends Object?>

extension ExternalDartReferenceToObject<T extends Object?> on ExternalDartReference<T>

Conversions from ExternalDartReference to the value of type T.

Properties

toDartObject extension no setter

T get 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.

Available on ExternalDartReference<T extends Object?>, provided by the ExternalDartReferenceToObject<T extends Object?> extension

Implementation
dart
external T get toDartObject;