$allocate static method

Pointer<UnnamedStruct$9> $allocate(
  1. Allocator $allocator, {
  2. required int x,
  3. required int score,
})

Implementation

static ffi.Pointer<UnnamedStruct$9> $allocate(
ffi.Allocator $allocator, {
required int x,
required int score,
}) => $allocator<UnnamedStruct$9>()
..ref.x = x
..ref.score = score;