Location class

Constructors

Location({double longitude, double latitude, DateTime timestamp, bool mocked, double accuracy, double altitude, double heading, double speed, double speedAccuracy})

Properties

accuracy double
The estimated horizontal accuracy of the location in meters. [...]
final
altitude double
The altitude of the device in meters. [...]
final
heading double
The heading in which the device is traveling in degrees. [...]
final
latitude double
The latitude of this location in degrees normalized to the interval -90.0 to +90.0 (both inclusive).
final
longitude double
The longitude of the location in degrees normalized to the interval -180 (exclusive) to +180 (inclusive).
final
mocked bool
Indicate if location was created from a mock provider. [...]
final
speed double
The speed at which the devices is traveling in meters per second over ground. [...]
final
speedAccuracy double
The estimated speed accuracy of this location, in meters per second. [...]
final
timestamp DateTime
The time at which this location was determined.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() String
Returns a string representation of this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited