show static method
void
show(
- BuildContext context, {
- required String title,
- String? message,
- String buttonLabel = 'OK',
- CmdCallback? onDismiss,
Show an alert dialog via DialogStack.
Implementation
static void show(
BuildContext context, {
required String title,
String? message,
String buttonLabel = 'OK',
CmdCallback? onDismiss,
}) {
final stack = DialogStack.of(context);
stack.push(
DialogAlert(
title: title,
message: message,
buttonLabel: buttonLabel,
onDismiss: () {
stack.pop();
onDismiss?.call();
return null;
},
),
);
}