Location class

Available extensions

Constructors

Location({double? lat, double? lng})
Location.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
lat → double?
final
lng → double?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({double? lat, double? lng}) → Location
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCoordinates({bool reverse = false}) → List<double>

Available on Location, provided by the LocationExt extension

Converts the current Location object into a list of coordinates [lat, lng].
toJson() → Map<String, dynamic>
toLatLng({bool reverse = false}) → LatLng

Available on Location, provided by the LocationExt extension

Converts the current Location object into a LatLng instance.
toString() → String
A string representation of this object.
inherited

Operators

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