WasmFileUris class

A class that represents a wasm module to be loaded.

Constructors

WasmFileUris({required Uri uri, Uri? simdUri, Uri? threadsSimdUri, WasmFileUris? fallback})
Creates a new WasmFileUris instance.
const
WasmFileUris.fromList(List<WasmFileUris> uriOptions)
A list of WasmFileUris that will be used as fallbacks if the previous one fails to load.
factory

Properties

fallback → WasmFileUris?
A fallback WasmFileUris instance that will be used if the current one fails to load.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
simdUri → Uri?
The uri to the simd wasm file. May be a http url or a local file uri.
final
threadsSimdUri → Uri?
The uri to the threads simd wasm file. May be a http url or a local file uri.
final
uri → Uri
The uri to the wasm file. May be a http url or a local file uri.
final

Methods

loadModule({Future<Uint8List> getUriBodyBytes(Uri uri) = getUriBodyBytes, ModuleConfig? config}) → Future<WasmModule>
Loads the wasm file.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override
uriForFeatures(WasmRuntimeFeatures features) → Uri
Returns the uri for the wasm file based on the supported features from wasmRuntimeFeatures.

Operators

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

Static Methods

uriForPackage({required String package, required String libPath, required String? envVariable}) → Future<Uri>
Returns the uri for a package name and a libPath that contains the wasm module.