Point2 constructor

const Point2({
  1. required num x,
  2. required num y,
})

A point at given x and y.

Implementation

const Point2({required this.x, required this.y});