showDeletePlaceConfirmation function

Future<bool> showDeletePlaceConfirmation(
  1. BuildContext context,
  2. Place place
)

Shows delete confirmation dialog.

Implementation

Future<bool> showDeletePlaceConfirmation(BuildContext context, Place place) {
  return DialogHelper.showDestructiveConfirmation(
    context,
    title: 'Delete Place',
    content: 'Are you sure you want to delete "${place.displayTitle}"?',
    confirmText: 'Delete',
  );
}