SimpleSelection.checkbox constructor
const
SimpleSelection.checkbox({
- Key? key,
- String? defaultValue,
- int maxSelectedCount = SelectionConstant.maxSelectCount,
- required List<
ItemEntity> items, - required SimpleSelectionOnSelectionChanged onSimpleSelectionChanged,
- Function? onMenuItemClick,
- SelectionConfig? themeData,
多选构造函数
Implementation
const SimpleSelection.checkbox({
Key? key,
required this.menuName,
this.menuKey = _defaultMenuKey,
this.defaultValue,
this.maxSelectedCount = SelectionConstant.maxSelectCount,
required this.items,
required this.onSimpleSelectionChanged,
this.onMenuItemClick,
this.themeData,
}) : this.isRadio = false,
super(key: key);