destroyLocationUpdates method Null safety
Destroy the location updates previously received
Implementation
Future<void> destroyLocationUpdates() async {
await BackgroundGeolocation.destroyLocations();
BackgroundGeolocation.removeListener(addLocation);
locationCount = 0;
locations.clear();
}