Location constructor

Location({
  1. required double latitude,
  2. required double longitude,
  3. required DateTime timestamp,
})

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

Implementation

Location({
  required this.latitude,
  required this.longitude,
  required this.timestamp,
});