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