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,
  7. BaseParam? cupertino,
  8. BaseParam? material,
})

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,
  BaseParam? cupertino,
  BaseParam? material,
}) async {
  return await BaseActionSheet.showConfirmation(
    context: context,
    title: title,
    message: message,
    confirmTitle: confirmTitle,
    cancelTitle: cancelTitle,
    onConfirm: onConfirm,
    cupertino: cupertino,
    material: material,
  );
}