widgets/map/delete_place_handler library
Delete place handler for GeoMap.
Copyright (C) 2025, Software Innovation Institute, ANU.
Licensed under the GNU General Public License, Version 3 (the "License").
License: https://opensource.org/license/gpl-3-0.
Classes
- DeletePlaceResult
- Result of a delete operation.
Functions
-
performDeleteOnServer(
{required String placeId, required BuildContext context, required bool isEncrypted}) → Future< bool> - Performs the delete operation on the server. Routes to appropriate service based on whether the place is encrypted.
-
prepareDeletePlace(
{required MarkerData marker, required List< Place> allPlaces}) → DeletePlaceResult - Prepares a place for deletion by finding it in the list.
-
restorePlace(
{required List< Place> allPlaces, required int originalIndex, required Place removedPlace}) → void - Restores a place after failed deletion.
-
showDeleteConfirmationDialog(
BuildContext context, MarkerData marker) → Future< bool> - Shows a confirmation dialog for deleting a place.
-
showDeleteErrorSnackbar(
BuildContext context) → void - Shows an error snackbar when delete fails.
-
showDeleteSuccessSnackbar(
BuildContext context) → void - Shows a success snackbar after place is deleted.
-
showDeletingSnackbar(
BuildContext context) → void - Shows a snackbar indicating deletion in progress.
-
showPlaceNotFoundSnackbar(
BuildContext context) → void - Shows a snackbar indicating place not found.
-
updateCacheAfterDelete(
List< Place> allPlaces) → void - Updates cache after successful deletion.