PowerGeoJSONFeatureCollection class

Represents a collection of PowerGeoFeatures that can include points, linestrings, and polygons.

Constructors

PowerGeoJSONFeatureCollection({required List<PowerGeoPoint> geoJSONPoints, required List<PowerGeoLineString> geoJSONLineStrings, required List<PowerGeoPolygon> geoJSONPolygons})
Creates a PowerGeoJSONFeatureCollection with the specified lists of features.
PowerGeoJSONFeatureCollection.fromJson(String source)
Creates a PowerGeoJSONFeatureCollection instance from a JSON string.
factory
PowerGeoJSONFeatureCollection.fromMap(Map<String, dynamic> json)
Creates a PowerGeoJSONFeatureCollection instance from a map.
factory

Properties

geoJSONLineStrings List<PowerGeoLineString>
List of PowerGeoLineString instances.
getter/setter pair
geoJSONPoints List<PowerGeoPoint>
List of PowerGeoPoint instances.
getter/setter pair
geoJSONPolygons List<PowerGeoPolygon>
List of PowerGeoPolygon instances.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addLines(List<PowerGeoLineString> geoJSONPoint) List<PowerGeoLineString>
Adds a list of PowerGeoLineString instances to the collection.
addPoints(List<PowerGeoPoint> geoJSONPoint) List<PowerGeoPoint>
Adds a list of PowerGeoPoint instances to the collection.
addPolygons(List<PowerGeoPolygon> geoJSONPoint) List<PowerGeoPolygon>
Adds a list of PowerGeoPolygon instances to the collection.
copyWith({List<PowerGeoPoint>? geoJSONPoints, List<PowerGeoLineString>? geoJSONLineStrings, List<PowerGeoPolygon>? geoJSONPolygons}) PowerGeoJSONFeatureCollection
Creates a copy of the PowerGeoJSONFeatureCollection with optional updates to its properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Converts the PowerGeoJSONFeatureCollection instance to a JSON string.
toMap() Map<String, dynamic>
Converts the PowerGeoJSONFeatureCollection instance to a map.
toString() String
A string representation of this object.
override

Operators

operator ==(covariant PowerGeoJSONFeatureCollection other) bool
The equality operator.
override