showErrorDialog<T> function

Future<T?> showErrorDialog<T>(
  1. BuildContext context, {
  2. String title = 'Error',
  3. String? description,
  4. List<DialogButton> buttons = const [],
  5. ProDialogTheme? theme,
})

Shows a DialogType.error dialog with sensible defaults.

Implementation

Future<T?> showErrorDialog<T>(
  BuildContext context, {
  String title = 'Error',
  String? description,
  List<DialogButton> buttons = const [],
  ProDialogTheme? theme,
}) {
  return showProDialog<T>(
    context,
    type: DialogType.error,
    title: title,
    description: description,
    buttons: buttons,
    theme: theme,
  );
}