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 altitudeAccuracy,
  7. required double heading,
  8. required double headingAccuracy,
  9. required double speed,
  10. required double speedAccuracy,
  11. int? floor,
  12. 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.altitudeAccuracy,
  required this.heading,
  required this.headingAccuracy,
  required this.speed,
  required this.speedAccuracy,
  this.floor,
  this.isMocked = false,
});