Location class

Available extensions

Constructors

Location({required String uuid, required DateTime timestamp, required Coords coords, int? age, String? event, bool? isMoving, bool? isHeartbeat, bool isMock = false, Activity? activity, Battery? battery, Geofence? geofence, double? odometer, JsonMap? extras})
const
Location.fromMap(JsonMap map)
factory

Properties

activity Activity?
final
age int?
final
battery Battery?
final
coords Coords
final
event String?
final
extras JsonMap?
final
geofence Geofence?
final
hashCode int
The hash code for this object.
no setteroverride
hasValidCoords bool
Whether this location has valid coordinates.
no setter
isHeartbeat bool?
final
isMock bool
final
isMoving bool?
final
odometer double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
final
uuid String
final

Methods

copyWith({String? uuid, DateTime? timestamp, int? age, String? event, bool? isMoving, bool? isHeartbeat, bool? isMock, Coords? coords, Activity? activity, Battery? battery, Geofence? geofence, double? odometer, JsonMap? extras}) Location
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() JsonMap
toString() String
A string representation of this object.
override

Operators

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