Position constructor

const Position({
  1. required double longitude,
  2. required double latitude,
  3. required DateTime? timestamp,
  4. required double accuracy,
  5. required double altitude,
  6. required double heading,
  7. required double speed,
  8. required double speedAccuracy,
  9. int? floor,
  10. bool isMocked = false,
})

Constructs an instance with the given values for testing. Position instances constructed this way won't actually reflect any real information from the platform, just whatever was passed in at construction time.

Implementation

const Position({
  required this.longitude,
  required this.latitude,
  required this.timestamp,
  required this.accuracy,
  required this.altitude,
  required this.heading,
  required this.speed,
  required this.speedAccuracy,
  this.floor,
  this.isMocked = false,
});