show static method

Future<bool> show(
  1. BuildContext context, {
  2. required String title,
  3. required String message,
  4. String? confirmLabel,
  5. 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;
}