openSelectionDialog method
Future<void>
openSelectionDialog(
- AppModel app,
- BuildContext context,
- String name, {
- required String title,
- required List<
String> options, - required OnSelection onSelection,
- String? buttonLabel,
- double? widthFraction,
- 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,
));
}