openErrorDialog function
void
openErrorDialog(})
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,
);