$allocate static method

Pointer<Pos> $allocate(
  1. Allocator $allocator, {
  2. required int imageWidth,
  3. required int imageHeight,
  4. required int topLeftX,
  5. required int topLeftY,
  6. required int topRightX,
  7. required int topRightY,
  8. required int bottomLeftX,
  9. required int bottomLeftY,
  10. required int bottomRightX,
  11. required int bottomRightY,
})

Implementation

static ffi.Pointer<Pos> $allocate(
  ffi.Allocator $allocator, {
  required int imageWidth,
  required int imageHeight,
  required int topLeftX,
  required int topLeftY,
  required int topRightX,
  required int topRightY,
  required int bottomLeftX,
  required int bottomLeftY,
  required int bottomRightX,
  required int bottomRightY,
}) => $allocator<Pos>()
  ..ref.imageWidth = imageWidth
  ..ref.imageHeight = imageHeight
  ..ref.topLeftX = topLeftX
  ..ref.topLeftY = topLeftY
  ..ref.topRightX = topRightX
  ..ref.topRightY = topRightY
  ..ref.bottomLeftX = bottomLeftX
  ..ref.bottomLeftY = bottomLeftY
  ..ref.bottomRightX = bottomRightX
  ..ref.bottomRightY = bottomRightY;