GeoPolygon class - core library - Dart API
GeoPolygon
GeoPolygon class
Represents a GeoPolygon area as a series of geographic coordinates, and optionally,
a list of inner boundaries (also known as holes).
An instance of this class, initialized with appropriate vertices.
- Annotations
Constructors
-
GeoPolygon(List<
GeoCoordinates> vertices) -
Constructs an instance of this class from the provided vertices.
factory
- GeoPolygon.withGeoBox(GeoBox geoBox)
-
Constructs an instance of this class from GeoBox.
factory
- GeoPolygon.withGeoCircle(GeoCircle geoCircle)
-
Constructs an instance of this class from GeoCircle.
factory
-
GeoPolygon.withInnerBoundaries(List<
GeoCoordinates> vertices, List<List< innerBoundaries)GeoCoordinates> > -
Constructs an instance of this class from the provided vertices and inner boundaries (holes).
factory
Properties
- hashCode → int
-
The hash code for this object.
no setter
-
innerBoundaries
→ List<
List< GeoCoordinates> > -
The list of polygon inner boundaries (holes), each defined as a list of geographic coordinates.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
vertices
→ List<
GeoCoordinates> -
The list of geographic coordinates representing the outer boundary vertices of polygon.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool - The equality operator.