Table.funcref constructor

Table.funcref({
  1. required int initial,
  2. int? maximum,
  3. Object? value,
})

Creates a Table of initial elements of anyfunc type.

If provided, maximum must be greater than or equal to initial. If provided, value must be a WebAssembly exported function and it will be assigned to all table entries.

Implementation

Table.funcref({required int initial, int? maximum, Object? value})
    : jsObject = _Table(_descriptor('anyfunc', initial, maximum), value);