RemoteModule class final

A WasmModule that lives in a worker.

Properties

hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
Whether this module is still usable.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
worker → WasmWorker
final

Methods

exports() → Future<List<WasmExport>>
The module's exports, with their declared types.
imports() → Future<List<WasmImport>>
The module's imports, with their declared types.
instantiate([Map<String, Map<String, Object?>> imports = const {}]) → Future<RemoteInstance>
Instantiates the module in the worker's store.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() → Future<Uint8List>
The compiled artifact, which can be loaded in another worker.
toString() → String
A string representation of this object.
override

Operators

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