GeoPolygon.withInnerBoundaries constructor

GeoPolygon.withInnerBoundaries(
  1. List<GeoCoordinates> vertices,
  2. List<List<GeoCoordinates>> innerBoundaries
)

Constructs an instance of this class from the provided vertices and inner boundaries (holes).

Throws InstantiationError if the number of vertices is less than three.

  • vertices List of vertices representing the polygon outer boundary in clockwise order.

  • innerBoundaries List of polygon inner boundaries (holes), each in counterclockwise order.

Throws InstantiationException. Instantiation error.

Implementation

factory GeoPolygon.withInnerBoundaries(List<GeoCoordinates> vertices, List<List<GeoCoordinates>> innerBoundaries) => $prototype.withInnerBoundaries(vertices, innerBoundaries);