GeoPolygon.withInnerBoundaries constructor
- List<
GeoCoordinates> vertices, - List<
List< innerBoundariesGeoCoordinates> >
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.
-
verticesList of vertices representing the polygon outer boundary in clockwise order. -
innerBoundariesList 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);