showConfirmation static method

  1. @Deprecated('Use BaseActionSheet.showConfirmation instead')
Future<bool> showConfirmation({
  1. required BuildContext context,
  2. String? title,
  3. String? message,
  4. String confirmTitle = 'Delete',
  5. String cancelTitle = 'Cancel',
  6. 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,
  );
}