Location class

Contains detailed location information.

Annotations

Constructors

Location({required double latitude, required double longitude, required DateTime timestamp})
Constructs an instance with the given values for testing. Location instances constructed this way won't actually reflect any real information from the platform, just whatever was passed in at construction time.

Properties

hashCode int
The hash code for this object.
no setteroverride
latitude double
The latitude associated with the placemark.
final
longitude double
The longitude associated with the placemark.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
The UTC timestamp the coordinates have been requested.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the Location instance into a Map instance that can be serialized to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(dynamic o) bool
The equality operator.
override

Static Methods

fromMap(dynamic message) Location
Converts the supplied Map to an instance of the Location class.
fromMaps(dynamic message) List<Location>
Converts a list of Map instances to a list of Location instances.