$allocate static method

Pointer<GGSPlayer> $allocate(
  1. Allocator $allocator, {
  2. required Pointer<Char> name,
  3. required double rating,
})

Implementation

static ffi.Pointer<GGSPlayer> $allocate(
ffi.Allocator $allocator, {
required ffi.Pointer<ffi.Char> name,
required double rating,
}) => $allocator<GGSPlayer>()
..ref.name = name
..ref.rating = rating;