stopLocationUpdates method Null safety

Future<void> stopLocationUpdates()

Stop receiving location updates

Implementation

Future<void> stopLocationUpdates() async {
  stopwatch
    ..stop()
    ..reset();
  await BackgroundGeolocation.changePace(false);
  await BackgroundGeolocation.stop();
  await BackgroundGeolocation.setOdometer(0);
}