Location constructor

const Location({
  1. required String uuid,
  2. required DateTime timestamp,
  3. required Coords coords,
  4. int? age,
  5. String? event,
  6. bool? isMoving,
  7. bool? isHeartbeat,
  8. bool isMock = false,
  9. Activity? activity,
  10. Battery? battery,
  11. Geofence? geofence,
  12. double? odometer,
  13. JsonMap? extras,
})

Implementation

const Location({
  required this.uuid,
  required this.timestamp,
  required this.coords,
  this.age,
  this.event,
  this.isMoving,
  this.isHeartbeat,
  this.isMock = false,
  this.activity,
  this.battery,
  this.geofence,
  this.odometer,
  this.extras,
});