WasiConfig class

The configuration and arguments for the WASI module.

Constructors

WasiConfig({required List<PreopenedDir> preopenedDirs, required Map<String, WasiDirectory> webBrowserFileSystem, bool captureStdout = false, bool captureStderr = false, bool inheritStdin = false, bool inheritEnv = false, bool inheritArgs = false, List<String> args = const [], List<EnvVariable> env = const []})
The configuration and arguments for the WASI module.
const

Properties

args List<String>
Custom process arguments to pass to the WASM module
final
captureStderr bool
Whether to capture stderr If this is true, you can use the WasmInstance.stderr getter to retrieve a stream of the module's stderr.
final
captureStdout bool
Whether to capture stdout. If this is true, you can use the WasmInstance.stdout getter to retrieve a stream of the module's stdout.
final
env List<EnvVariable>
Custom Environment variables to pass to the WASM module
final
hashCode int
The hash code for this object.
no setterinherited
inheritArgs bool
Whether to inherit the process arguments from the host process.
final
inheritEnv bool
Whether to inherit environment variables from the host process.
final
inheritStdin bool
Whether to inherit stdin from the host process.
final
preopenedDirs List<PreopenedDir>
Custom preopened directories to pass to the WASM module The module will be able to access and edit these directories
final
preopenedFiles List<String>
Custom preopened files to pass to the WASM module
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
webBrowserFileSystem Map<String, WasiDirectory>
Not supported outside the browser executor.
final

Methods

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