PolygonGeographicArea constructor
- List<
Coordinates> coordinates = const <Coordinates>[],
Creates a polygonal geographic area from a list of coordinate vertices.
Constructs a polygon using the provided coordinates as vertices. The polygon boundary is formed by connecting consecutive coordinates in order, with the last coordinate automatically connected back to the first to close the shape.
Parameters
coordinates: An ordered list of Coordinates defining the polygon vertices. Should contain at least 3 points for a valid polygon.
Important
For correct behavior, ensure the coordinate list has at least 3 vertices and avoid self-intersecting or overlapping edges.
See also:
- GeographicArea: Abstract base class for geographic areas.
Implementation
PolygonGeographicArea({this.coordinates = const <Coordinates>[]});