Polygon constructor

const Polygon(
  1. List<Point> vertices
)

Creates a polygon from an ordered list of vertices.

Implementation

const Polygon(this.vertices) : assert(vertices.length > 2);