show<T> static method
- BuildContext context, {
- String? description,
- required String title,
- required List<
ConfirmDialogVariant> variants, - String? label,
- List<
Widget> additional = const [], - int initial = 0,
Displays a ConfirmDialog wrapped in a ModalPopup.
Implementation
static Future<T?> show<T>(
BuildContext context, {
String? description,
required String title,
required List<ConfirmDialogVariant> variants,
String? label,
List<Widget> additional = const [],
int initial = 0,
}) {
return ModalPopup.show<T?>(
context: context,
child: ConfirmDialog(
description: description,
title: title,
variants: variants,
additional: additional,
label: label,
initial: initial,
),
);
}