removePolygonGeofence method
- String identifier
Removes a polygon geofence by identifier.
Returns true if removed, false if not found.
Implementation
Future<bool> removePolygonGeofence(String identifier) async {
final removed = _polygons.remove(identifier);
_insideState.remove(identifier);
if (removed != null) {
await _persist();
debugPrint('[PolygonGeofenceService] Removed polygon: $identifier');
return true;
}
return false;
}