WasmInstanceBuilder class

Used to collect all of the imports that a WasmModule requires before it is built.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addFunction(String moduleName, String name, Function fn) → void
Add a function to the imports.
addGlobal(String moduleName, String name, dynamic val) WasmGlobal
Add a global to the imports.
addMemory(String moduleName, String name, WasmMemory memory) → void
Add a WasmMemory to the imports.
build() WasmInstance
Build the module instance.
enableWasi({bool captureStdout = false, bool captureStderr = false}) → void
Enable WASI and add the default WASI imports.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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