showConfirmation static method

Future<bool> showConfirmation({
  1. required BuildContext context,
  2. required String title,
  3. String? message,
  4. String confirmTitle = 'Confirm',
  5. 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,
  );
}