WASIComponentWitAdapterProgram class final
Executable WIT adapter program indexed by import/export function name.
Constructors
-
WASIComponentWitAdapterProgram.bind(Iterable<
WASIComponentWitFunctionBinding> functions, {Map<String, WASIComponentWitAdapterCallback> imports = const <String, WASIComponentWitAdapterCallback>{}, Map<String, WASIComponentWitAdapterCallback> exports = const <String, WASIComponentWitAdapterCallback>{}}) -
Binds
functionsto executable WIT adapter callbacks.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
operations
→ List<
WASIComponentWitAdapterOperation> -
Adapter operations in expanded world order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
invokeExport(
String qualifiedName, List< Object?> args) → Object? - Invokes an exported WIT function adapter by qualified name.
-
invokeExportAsync(
String qualifiedName, List< Object?> args) → Future<Object?> - Invokes an exported WIT function adapter by qualified name asynchronously.
-
invokeImport(
String qualifiedName, List< Object?> args) → Object? - Invokes an imported WIT function adapter by qualified name.
-
invokeImportAsync(
String qualifiedName, List< Object?> args) → Future<Object?> - Invokes an imported WIT function adapter by qualified name asynchronously.
-
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