GeoGeometry class

Implementers
Annotations
  • @freezed

Constructors

GeoGeometry.linestring(List<LatLng> points, Color randomColor)
factory
GeoGeometry.multiPolygon(List<List<List<LatLng>>> points, Color randomColor)
factory
GeoGeometry.point(LatLng point, Color randomColor)
factory
GeoGeometry.polygon(List<LatLng> points, Color randomColor)
factory

Properties

copyWith → $GeoGeometryCopyWith<GeoGeometry>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
randomColor Color
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

color(BuildContext context) Color
map<TResult extends Object?>({required TResult point(GeoPoint value), required TResult linestring(GeoLinestring value), required TResult polygon(GeoPolygon value), required TResult multiPolygon(GeoMultiPolygon value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? point(GeoPoint value)?, TResult? linestring(GeoLinestring value)?, TResult? polygon(GeoPolygon value)?, TResult? multiPolygon(GeoMultiPolygon value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult point(GeoPoint value)?, TResult linestring(GeoLinestring value)?, TResult polygon(GeoPolygon value)?, TResult multiPolygon(GeoMultiPolygon value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult point(LatLng point, Color randomColor)?, TResult linestring(List<LatLng> points, Color randomColor)?, TResult polygon(List<LatLng> points, Color randomColor)?, TResult multiPolygon(List<List<List<LatLng>>> points, Color randomColor)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult point(LatLng point, Color randomColor), required TResult linestring(List<LatLng> points, Color randomColor), required TResult polygon(List<LatLng> points, Color randomColor), required TResult multiPolygon(List<List<List<LatLng>>> points, Color randomColor)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? point(LatLng point, Color randomColor)?, TResult? linestring(List<LatLng> points, Color randomColor)?, TResult? polygon(List<LatLng> points, Color randomColor)?, TResult? multiPolygon(List<List<List<LatLng>>> points, Color randomColor)?}) → TResult?
inherited

Operators

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

Static Methods

fromMap(Map<String, dynamic> json) GeoGeometry