show static method
Future<bool>
show(
- BuildContext context, {
- required String title,
- required String message,
- String? confirmLabel,
- Color? confirmColor,
Implementation
static Future<bool> show(
BuildContext context, {
required String title,
required String message,
String? confirmLabel,
Color? confirmColor,
}) async {
final result = await showDialog<bool>(
context: context,
builder: (_) => ConfirmDialog(
title: title,
message: message,
confirmLabel: confirmLabel ?? 'Confirm',
confirmColor: confirmColor,
),
);
return result ?? false;
}