Polygon constructor

Polygon(
  1. List<Corner> corners,
  2. List<Edge> edges,
  3. List<num> radii
)

Implementation

Polygon(this.corners, this.edges, this.radii)
    : assert(
        edges.length == corners.length,
        'There should be equal number of edges and corners',
      ),
      assert(
        radii.length == corners.length,
        'There should be equal number corners and their respective radius for each corner',
      );