WasmGlobal class abstract

A global value that can be read with get and written with set when the global is mutable.

Inheritance

Constructors

WasmGlobal()

Properties

hashCode int
The hash code for this object.
no setterinherited
kind WasmExternalKind
The kind of this WasmExternal.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type GlobalTy?
Returns the type of the global.
no setter

Methods

get() Object?
Returns the value of the global.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(WasmValue value) → void
Updates the value of the global.
toString() String
A string representation of this object.
override
when<T>({required T memory(WasmMemory memory), required T table(WasmTable table), required T global(WasmGlobal global), required T function(WasmFunction function)}) → T
Executes the given function depending on the type of this WasmExternal.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited