WasmFunction<F extends Function>.fromRef constructor Null safety

WasmFunction<F extends Function>.fromRef(
  1. WasmAnyRef ref
)

Downcast anyref to a typed function reference.

Will throw if the reference is not a function with the expected signature.

Implementation

external factory WasmFunction.fromRef(WasmAnyRef ref);