MyLocation class

A model representing a device's location details.

Constructors

MyLocation.new()

Properties

accuracy double
The estimated horizontal accuracy of the position in meters.
getter/setter pair
altitude double
The altitude of the device in meters.
getter/setter pair
altitudeAccuracy double
The estimated vertical accuracy of the position in meters.
getter/setter pair
floor int?
The floor specifies the floor of the building on which the device is located.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasLocation bool
Indicates whether a valid location is available.
getter/setter pair
heading double
The heading in which the device is traveling in degrees.
getter/setter pair
headingAccuracy double
The estimated heading accuracy of the position in degrees.
getter/setter pair
isMocked bool
Will be true on Android (starting from API lvl 18) when the location came from the mocked provider.
getter/setter pair
latitude double
The latitude of this position in degrees normalized to the interval -90.0 to +90.0 (both inclusive).
getter/setter pair
longitude double
The longitude of the position in degrees normalized to the interval -180 (exclusive) to +180 (inclusive).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
The speed at which the devices is traveling in meters per second over ground.
getter/setter pair
speedAccuracy double
The estimated speed accuracy of this position, in meters per second.
getter/setter pair
timestamp DateTime
The time at which this position was determined.
getter/setter pair

Methods

fromJson(Position position) → void
Converts a Position object from geolocator into a MyLocation instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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