WasmFunc class final
A WebAssembly function.
Properties
- function → Function
-
A Function of the right arity that calls this function.
no setter
- handle → FuncHandle
-
The raw handle, which is safe to copy and to send to another isolate.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → WasmStore
-
The store the function lives in.
final
- type → WasmFuncType
-
The function's signature.
no setter
Methods
-
call(
List< Object?> arguments) → List<Object?> -
Calls the function with
argumentsand returns its results. -
invoke(
List< Object?> arguments) → Object? - Calls the function, collapsing the result list the way JavaScript does: no results gives null, one result gives the value itself and several results give the list.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromHandle(
WasmStore store, FuncHandle handle) → WasmFunc?