LocationDto class

A location delivered to the background callback.

Constructors

LocationDto.fromJson(Map json)
Parses the location map sent by the native side.
factory

Properties

accuracy → double
Estimated horizontal accuracy radius in meters.
final
altitude → double
Altitude in meters above the WGS 84 ellipsoid.
final
hashCode → int
The hash code for this object.
no setterinherited
heading → double
Direction of travel in degrees, clockwise from north.
final
isMocked → bool
Whether the location comes from a mock provider (Android, iOS 15+).
final
latitude → double
Latitude in degrees.
final
longitude → double
Longitude in degrees.
final
provider → String
Name of the location provider, e.g. gps or fused; empty on iOS.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
speed → double
Speed in meters per second.
final
speedAccuracy → double
Estimated speed accuracy in meters per second (0 on iOS).
final
time → double
Milliseconds since epoch.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes the location with the same keys LocationDto.fromJson reads.
toString() → String
A string representation of this object.
override

Operators

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