Polygon constructor

Polygon(
  1. List<Vector3> vertices, {
  2. Color color = WHITE,
})

Implementation

Polygon(List<Vector3> vertices, {Color color = WHITE}) : super(color: color) {
  setPointsAsCorners([...vertices, vertices.first]);
}