openDialog function
void
openDialog({
- required String title,
- String? description,
- BloomNode? body,
- String? confirmLabel,
- String? cancelLabel,
- bool destructive = false,
- VoidCallback? onConfirm,
- VoidCallback? onCancel,
Opens a general modal dialog.
Implementation
void openDialog({
required String title,
String? description,
BloomNode? body,
String? confirmLabel,
String? cancelLabel,
bool destructive = false,
VoidCallback? onConfirm,
VoidCallback? onCancel,
}) {
activeDialog.value = DialogConfig(
title: title,
description: description,
body: body,
confirmLabel: confirmLabel,
cancelLabel: cancelLabel,
destructive: destructive,
onConfirm: onConfirm,
onCancel: onCancel,
);
}