SimpleSelection.checkbox constructor

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