stopLocationUpdates method Null safety
Stop receiving location updates
Implementation
Future<void> stopLocationUpdates() async {
stopwatch
..stop()
..reset();
await BackgroundGeolocation.changePace(false);
await BackgroundGeolocation.stop();
await BackgroundGeolocation.setOdometer(0);
}