show<T> static method

Future<T?> show<T>(
  1. BuildContext context, {
  2. String? description,
  3. required String title,
  4. required List<ConfirmDialogVariant> variants,
  5. String? label,
  6. List<Widget> additional = const [],
  7. 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,
    ),
  );
}