Point.allocate constructor

Point.allocate(
  1. Pointer<Uint8>? x,
  2. Pointer<Uint8>? y
)

Implementation

factory Point.allocate(Pointer<Uint8>? x, Pointer<Uint8>? y) {
  final pointer = calloc<Point>();
  return pointer.ref
    ..address = pointer
    ..x = x
    ..y = y;
}