LocationPoint class

Represents a single location point

Constructors

LocationPoint({required double latitude, required double longitude, double? accuracy, double? altitude, double? speed, double? bearing, required DateTime timestamp, String? activity, int? batteryLevel, bool isSynced = false})
const
LocationPoint.fromJson(Map<String, dynamic> json)
Create from JSON
factory

Properties

accuracy double?
final
activity String?
final
altitude double?
final
batteryLevel int?
final
bearing double?
final
hashCode int
The hash code for this object.
no setterinherited
isSynced bool
final
latitude double
final
longitude double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double?
final
timestamp DateTime
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to JSON
toString() String
A string representation of this object.
override

Operators

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