WasmInstance class final

An instance of a WasmModule inside a WasmStore.

Constructors

WasmInstance.fromHandle(WasmStore store, InstanceHandle handle)
Wraps an existing wasmtime_instance_t value.

Properties

exportNames → List<String>
The names of all exports, in the order the module declares them.
no setter
exports → Map<String, Object?>
Every export, keyed by name.
no setter
handle → InstanceHandle
The raw handle; safe to copy.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
store → WasmStore
The store the instance lives in.
final

Methods

export(String name) → Object?
The export called name, or null when there is none.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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