LatLng class Null safety

A pair of latitude and longitude coordinates, stored as degrees.

Annotations

Constructors

LatLng(double latitude, double longitude)
Creates a geographical location specified in degrees latitude and longitude.
const

Properties

hashCode int
The hash code for this object.
read-onlyoverride
latitude double
The latitude in degrees between -90.0 and 90.0, both inclusive.
final
longitude double
The longitude in degrees between -180.0 (inclusive) and 180.0 (exclusive).
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Object
Converts this object to something serializable in JSON.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Object? json) LatLng?
Initialize a LatLng from an [lat, lng] array.