value property

Object? value

Returns a value stored in Global.

Automatically converts BigInt values between Dart and JS.

Implementation

Object? get value {
  final v = jsObject.value;
  return v != null && JsBigInt.isJsBigInt(v) ? JsBigInt.toBigInt(v) : v;
}
void value=(Object? value)

Sets a value stored in Global. Attempting to set a value when Global is immutable will cause a runtime error.

Automatically converts BigInt values between Dart and JS.

Implementation

set value(Object? value) {
  jsObject.value = value is BigInt ? value.toJs() : value;
}