WasmFuncRef.fromRef constructor Null safety

WasmFuncRef.fromRef(
  1. WasmAnyRef ref
)

Downcast anyref to funcref.

Will throw if the reference is not a funcref.

Implementation

external factory WasmFuncRef.fromRef(WasmAnyRef ref);