Global class
A WebAssembly.Global
object represents a global variable instance, accessible from
both JavaScript and importable/exportable across one or more WebAssembly.Module
instances. This allows dynamic linking of multiple modules.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- Global(GlobalDescriptor descriptor, [dynamic v])
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ dynamic
-
Available on Global, provided by the Global$Typings extension
The value contained inside the global variable â this can be used to directly set and get the global's value.getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
valueOf(
) → dynamic -
Available on Global, provided by the Global$Typings extension
Old-style method that returns the value contained inside the global variable.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited