WasmFunction<F extends Function>.fromFunction constructor Null safety

WasmFunction<F extends Function>.fromFunction(
  1. F f
)

Create a typed function reference referring to the given function.

The argument must directly name a static function with no optional parameters and no type parameters.

Implementation

external factory WasmFunction.fromFunction(F f);