showConfirmation static method
Future<bool>
showConfirmation({
- required BuildContext context,
- required String title,
- String? message,
- String confirmTitle = 'Confirm',
- VoidCallback? onConfirm,
Shows a confirmation alert with Cancel and Confirm buttons.
Implementation
static Future<bool> showConfirmation({
required BuildContext context,
required String title,
String? message,
String confirmTitle = 'Confirm',
VoidCallback? onConfirm,
}) async {
return await BaseAlert.showConfirmation(
context: context,
title: title,
message: message,
confirmTitle: confirmTitle,
onConfirm: onConfirm,
);
}