openConfirmDialog function
void
openConfirmDialog({
- required String title,
- String? description,
- String confirmLabel = 'Confirm',
- String cancelLabel = 'Cancel',
- bool destructive = false,
- required VoidCallback onConfirm,
- VoidCallback? onCancel,
Helper for standard confirmation dialogs.
Implementation
void openConfirmDialog({
required String title,
String? description,
String confirmLabel = 'Confirm',
String cancelLabel = 'Cancel',
bool destructive = false,
required VoidCallback onConfirm,
VoidCallback? onCancel,
}) {
openDialog(
title: title,
description: description,
confirmLabel: confirmLabel,
cancelLabel: cancelLabel,
destructive: destructive,
onConfirm: onConfirm,
onCancel: onCancel,
);
}