LatLng class

An immutable class representing a pair of latitude and longitude coordinates, stored as degrees.

Ref: https://developers.google.com/android/reference/com/google/android/gms/maps/model/LatLng

Annotations
  • @Freezed()

Constructors

LatLng({required double lat, required double lng})
constructs a LatLng object.
const
factory
LatLng.fromJson(Map<String, Object?> json)
Parse an LatLng from json.
factory

Properties

copyWith → $LatLngCopyWith<LatLng>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
lat double
The latitude part of the coordinate,
no setterinherited
lng double
the longitude part of the coordinate.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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