MenuItemGroupWithSelection<SelectionItemType> constructor
MenuItemGroupWithSelection<SelectionItemType> ({
- required List<
SelectableMenuItem< items,SelectionItemType> > - required SelectionModel<
SelectionItemType> selectionModel, - String? label,
- bool? shouldCloseMenuOnSelection,
Implementation
MenuItemGroupWithSelection(
{required List<SelectableMenuItem<SelectionItemType>> items,
required this.selectionModel,
String? label,
bool? shouldCloseMenuOnSelection})
: shouldCloseMenuOnSelection = shouldCloseMenuOnSelection ??
selectionModel is! MultiSelectionModel,
itemsRole = (selectionModel.isSingleSelect)
? 'menuitemradio'
: 'menuitemcheckbox',
super(items, label);