$allocate static method

Pointer<Board> $allocate(
  1. Allocator $allocator, {
  2. required int player,
  3. required int opponent,
})

Implementation

static ffi.Pointer<Board> $allocate(
ffi.Allocator $allocator, {
required int player,
required int opponent,
}) => $allocator<Board>()
..ref.player = player
..ref.opponent = opponent;