GeoSerie class Null safety

A class to hold information about a serie of GeoPoint


GeoSerie({required String name, required GeoSerieType type, int? id, num? surface, GeoSerie? boundary, GeoPoint? centroid, List<GeoPoint>? geoPoints})
Default constructor: requires a name and a type
GeoSerie.fromJson(Map<String, dynamic> json)
Make a GeoSerie from json data
GeoSerie.fromNameAndType({required String name, required String typeStr, int? id})
Make a GeoSerie from name and serie type


boundary GeoSerie?
Boundaries of a geometry
read / write
centroid GeoPoint?
The centroid of a geometry
read / write
geoPoints List<GeoPoint>
The list of GeoPoint in the serie
read / write
hashCode int
The hash code for this object.
read-only, inherited
id int?
Id of the geoserie
read / write
name String
Name if the geoserie
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
surface num?
The surface of a geometry
read / write
type GeoSerieType
Type of the geoserie
read / write
typeStr String
The type of the serie as a string


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toGeoJsonCoordinatesString() String
Convert to a geojson coordinates string
toGeoJsonFeatureString(Map<String, dynamic>? properties) String
Convert to a geojson feature string
toLatLng({bool ignoreErrors = false}) List<LatLng>
Get a list of LatLng from this GeoSerie
toMap({bool withId = true}) Map<String, dynamic>
name the name of the GeoSerie typeStr the type of the serie: group, line or polygon id the id of the serie Get a json map from this GeoSerie
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.