showConfirmationDialog abstract method

void showConfirmationDialog({
  1. required BuildContext context,
  2. required String title,
  3. required String message,
  4. required String confirmText,
  5. required String cancelText,
  6. required void onConfirm(
    1. bool
    ),
})

Shows a confirmation dialog.

title The title of the dialog. message The message to display. confirmText The text for the confirm button. cancelText The text for the cancel button. onConfirm Callback when the user confirms (receives true if confirmed).

Implementation

void showConfirmationDialog({
  required BuildContext context,
  required String title,
  required String message,
  required String confirmText,
  required String cancelText,
  required void Function(bool) onConfirm,
});