AndroidPosition class
Contains additional location information only available on Android platforms.
Constructors
- AndroidPosition({required double satelliteCount, required double satellitesUsedInFix, required dynamic longitude, required dynamic latitude, required dynamic timestamp, required dynamic accuracy, required dynamic altitude, required dynamic altitudeAccuracy, required dynamic heading, required dynamic headingAccuracy, required dynamic speed, required dynamic speedAccuracy, int? floor, dynamic isMocked = false})
-
Constructs an instance with the given values for testing. AndroidPosition
instances constructed this way won't actually reflect any real information
from the platform, just whatever was passed in at construction time.
const
Properties
- accuracy → double
-
The estimated horizontal accuracy of the position in meters.
finalinherited
- altitude → double
-
The altitude of the device in meters.
finalinherited
- altitudeAccuracy → double
-
The estimated vertical accuracy of the position in meters.
finalinherited
- floor → int?
-
The floor specifies the floor of the building on which the device is
located.
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- heading → double
-
The heading in which the device is traveling in degrees.
finalinherited
- headingAccuracy → double
-
The estimated heading accuracy of the position in degrees.
finalinherited
- isMocked → bool
-
Will be true on Android (starting from API lvl 18) when the location came
from the mocked provider.
finalinherited
- latitude → double
-
The latitude of this position in degrees normalized to the interval -90.0
to +90.0 (both inclusive).
finalinherited
- longitude → double
-
The longitude of the position in degrees normalized to the interval -180
(exclusive) to +180 (inclusive).
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- satelliteCount → double
-
If available it returns the number of GNSS satellites.
final
- satellitesUsedInFix → double
-
If available it returns the number of GNSS satellites used in fix.
final
- speed → double
-
The speed at which the devices is traveling in meters per second over
ground.
finalinherited
- speedAccuracy → double
-
The estimated speed accuracy of this position, in meters per second.
finalinherited
- timestamp → DateTime
-
The time at which this position was determined.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the AndroidPosition instance into a Map instance that can be
serialized to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromMap(
dynamic message) → AndroidPosition -
Converts the supplied Map to an instance of the AndroidPosition class.
override