openAlertDialog function

void openAlertDialog({
  1. required String title,
  2. String? description,
  3. BloomNode? body,
  4. String confirmLabel = 'Continue',
  5. String cancelLabel = 'Cancel',
  6. bool destructive = true,
  7. required VoidCallback onConfirm,
  8. VoidCallback? onCancel,
})

Opens an alert confirmation dialog (destructive action confirmation).

Implementation

void openAlertDialog({
  required String title,
  String? description,
  BloomNode? body,
  String confirmLabel = 'Continue',
  String cancelLabel = 'Cancel',
  bool destructive = true,
  required VoidCallback onConfirm,
  VoidCallback? onCancel,
}) {
  openDialog(
    title: title,
    description: description,
    body: body,
    confirmLabel: confirmLabel,
    cancelLabel: cancelLabel,
    destructive: destructive,
    onConfirm: onConfirm,
    onCancel: onCancel,
  );
}