removeGeofences static method
Remove all monitored Geofence records, or a specific subset by identifier.
Example
// Remove all geofences.
BackgroundGeolocation.removeGeofences();
// Remove only these.
BackgroundGeolocation.removeGeofences(['HOME', 'WORK']);
Implementation
static Future<bool> removeGeofences([List<String>? identifiers]) async {
// (WO-053) null (omitted) means all; the natives answer an error for anything but a list.
return (await _methodChannel.invokeMethod<bool>(
'removeGeofences', identifiers)) as FutureOr<bool>;
}