WasmModule class abstract

A JS function that returns a Promise to a WASM module. See this file for an example of how to obtain and initialize this type.

Enabling cross-origin isolation

Rust WASM modules do not work without cross-origin isolation. Please refer to Setting up the web server for an example of a Dart web server that accomplishes this task.

Constructors

WasmModule()

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

bind(dynamic thisArg, String moduleName) WasmModule
Create a new WASM module initializer that is bound to the specified binary.
call([String? moduleName]) Object
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

Static Methods

cast<T extends WasmModule>(FutureOr<WasmModule> module) Future<T>
initialize({required Modules kind, WasmModule module()?}) FutureOr<WasmModule>
Initialize a WasmModule with the specified kind of Modules.