LocationUpdate class Null safety
Location Update
- Inheritance
- Object
- Identifiable<
String> - LocationUpdate
Constructors
- LocationUpdate({required String id, required num metersPassed, required num speed, required num longitude, required num latitude, required String timestamp, required num accuracy, required Location? originalLocation, required Duration? timeElapsed, double averageSpeed = 0})
- Location update
- LocationUpdate.fromLocationData({required Location location, required num distance, required num speed, required Duration elapsed, double averageSpeed = 0})
-
Create a LocationUpdate using [...]
factory
- LocationUpdate.initial()
- Initial location update
Properties
- accuracy → num
-
Accuracy of position
final
- averageSpeed → double
-
Average speed of user in km/h
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id → String
-
Identifier
final
- latitude → num
-
Latitude
final
- longitude → num
-
Longitude
final
- metersPassed → num
-
Number of meters passed at this particular point
final
- originalLocation → Location?
-
Original location from bg plugin
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- speed → num
-
Current speed of user
final
- timeElapsed → Duration?
-
Duration since run started
final
- timestamp → String
-
Timestamp when GPS Position was recorded
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited