openSelectionDialog method

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

Implementation

@override
Future<void> openSelectionDialog(
  AppModel app,
  BuildContext context,
  String name, {
  required String title,
  required List<String> options,
  required OnSelection onSelection,
  String? buttonLabel,
  double? widthFraction, // percentage of screen width
  bool? includeHeading,
}) async {
  await DialogStatefulWidgetHelper.openIt(
      context,
      name,
      _monaStyle.frontEndStyle().dialogWidgetStyle().selectionDialog(
            app,
            context,
            title: title,
            options: options,
            buttonLabel: buttonLabel,
            onSelection: onSelection,
            widthFraction: widthFraction,
            includeHeading: includeHeading,
          ));
}