showDestructiveConfirmation static method

Future<bool> showDestructiveConfirmation({
  1. required BuildContext context,
  2. required String title,
  3. String? message,
  4. String destructiveTitle = 'Delete',
  5. VoidCallback? onDestroy,
})

Shows a destructive confirmation alert with Cancel and destructive action.

Implementation

static Future<bool> showDestructiveConfirmation({
  required BuildContext context,
  required String title,
  String? message,
  String destructiveTitle = 'Delete',
  VoidCallback? onDestroy,
}) async {
  return await BaseAlert.showDestructiveConfirmation(
    context: context,
    title: title,
    message: message,
    destructiveTitle: destructiveTitle,
    onDestroy: onDestroy,
  );
}