openErrorDialog function

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 = true,
})

Implementation

void openErrorDialog(
  AppModel app,
  BuildContext context,
  String name, {
  required String title,
  required String errorMessage,
  String? closeLabel,
  double? widthFraction, // percentage of screen width
  bool? includeHeading = true,
}) =>
    StyleRegistry.registry()
        .styleWithApp(app)
        .frontEndStyle()
        .dialogStyle()
        .openErrorDialog(
          app,
          context, name, title: title,
          errorMessage: errorMessage,
          closeLabel: closeLabel,
          widthFraction: widthFraction, // percentage of screen width
          includeHeading: includeHeading,
        );