ClueDropDownCheckButton<T, E> constructor

ClueDropDownCheckButton<T, E>({
  1. Key? key,
  2. String? title,
  3. required String allSelectText,
  4. required String notSelectText,
  5. bool emptyIsAll = true,
  6. List<T> selectedKeyList = const [],
  7. List<T> blockKeyList = const [],
  8. Map<T, E> itemMap = const {},
  9. double? width,
  10. required void onChanged(
    1. List<T> selectedKeyList,
    2. List<E> selectedValueList
    ),
  11. SvgPicture? checkboxOn,
  12. SvgPicture? checkboxOff,
  13. SvgPicture? arrowImage,
})

Creates a ClueDropDownCheckButton.

title is the title of the dropdown. allSelectText is the text displayed when all items are selected. notSelectText is the text displayed when no items are selected. emptyIsAll determines if an empty selection represents all items. selectedKeyList is the list of selected keys. blockKeyList is the list of keys to be disabled. itemMap is the map of keys and values to be displayed. width specifies the width of the dropdown button. onChanged is the callback function when the selected keys change.

Implementation

ClueDropDownCheckButton({
  super.key,
  this.title,
  required this.allSelectText,
  required this.notSelectText,
  this.emptyIsAll = true,
  this.selectedKeyList = const [],
  this.blockKeyList = const [],
  this.itemMap = const {},
  this.width,
  required this.onChanged,
  this.checkboxOn,
  this.checkboxOff,
  this.arrowImage,
});