Point constructor

Point(
  1. int x,
  2. int y
)

Implementation

factory Point(int x, int y) {
  final ptr = calloc<cvg.Point>()
    ..ref.x = x
    ..ref.y = y;
  return Point.fromPointer(ptr);
}