SimpleSelection.radio constructor

const SimpleSelection.radio({
  1. Key? key,
  2. required String menuName,
  3. String menuKey = _defaultMenuKey,
  4. String? defaultValue,
  5. required List<ItemEntity> items,
  6. required SimpleSelectionOnSelectionChanged onSimpleSelectionChanged,
  7. Function? onMenuItemClick,
  8. 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);