Polygon constructor
Create a Polygon with vertices at points.
Pass a List<Point<num>>
Implementation
Polygon(List<Offset> points) : points = points.toList(growable: false) {
var numberOfPoint = this.points.length;
if (numberOfPoint < 3) {
throw NeedsAtLeastThreePoints(numberOfPoint);
}
}