openErrorDialog method

  1. @override
Future<void> openErrorDialog(
  1. AppModel app,
  2. BuildContext context,
  3. String name, {
  4. required String title,
  5. required String errorMessage,
  6. String? closeLabel,
  7. double? widthFraction,
  8. bool? includeHeading,
})
override

Implementation

@override
Future<void> openErrorDialog(
  AppModel app,
  BuildContext context,
  String name, {
  required String title,
  required String errorMessage,
  String? closeLabel,
  double? widthFraction, // percentage of screen width
  bool? includeHeading,
}) async =>
    await DialogStatefulWidgetHelper.openIt(
      context,
      name,
      _monaStyle.frontEndStyle().dialogWidgetStyle().errorDialog(
            app,
            context,
            title: title,
            errorMessage: errorMessage,
            widthFraction: widthFraction,
            includeHeading: includeHeading,
          ),
    );