showDestructiveConfirmation static method
Future<bool>
showDestructiveConfirmation({
- required BuildContext context,
- required String title,
- String? message,
- String destructiveTitle = 'Delete',
- 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,
);
}