openAckNackDialog method

  1. @override
Future<void> openAckNackDialog(
  1. AppModel app,
  2. BuildContext context,
  3. String name, {
  4. required String title,
  5. required String message,
  6. required OnSelection onSelection,
  7. String? ackButtonLabel,
  8. String? nackButtonLabel,
  9. double? widthFraction,
  10. bool? includeHeading,
})
override

Implementation

@override
Future<void> openAckNackDialog(
  AppModel app,
  BuildContext context,
  String name, {
  required String title,
  required String message,
  required OnSelection onSelection,
  String? ackButtonLabel,
  String? nackButtonLabel,
  double? widthFraction, // percentage of screen width
  bool? includeHeading,
}) async =>
    await DialogStatefulWidgetHelper.openIt(
        context,
        name,
        _monaStyle.frontEndStyle().dialogWidgetStyle().ackNackDialog(
              app,
              context,
              title: title,
              message: message,
              onSelection: onSelection,
              ackButtonLabel: ackButtonLabel,
              nackButtonLabel: nackButtonLabel,
              widthFraction: widthFraction,
              includeHeading: includeHeading,
            ));