showConfirmation static method
- @Deprecated('Use BaseActionSheet.showConfirmation instead')
- required BuildContext context,
- String? title,
- String? message,
- String confirmTitle = 'Delete',
- String cancelTitle = 'Cancel',
- VoidCallback? onConfirm,
Shows a simple confirmation action sheet with delete/cancel options
Implementation
@Deprecated('Use BaseActionSheet.showConfirmation instead')
static Future<bool> showConfirmation({
required BuildContext context,
String? title,
String? message,
String confirmTitle = 'Delete',
String cancelTitle = 'Cancel',
VoidCallback? onConfirm,
}) async {
return await BaseActionSheet.showConfirmation(
context: context,
title: title,
message: message,
confirmTitle: confirmTitle,
cancelTitle: cancelTitle,
onConfirm: onConfirm,
);
}