openMessageDialog function

void openMessageDialog(
  1. AppModel app,
  2. BuildContext context,
  3. String name, {
  4. required String title,
  5. required String message,
  6. String? closeLabel,
  7. double? widthFraction,
  8. bool? includeHeading = true,
})

Implementation

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