Point constructor

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

Implementation

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