ClueDropDownCheckButton<T, E> constructor
ClueDropDownCheckButton<T, E> ({
- Key? key,
- String? title,
- required String allSelectText,
- required String notSelectText,
- bool emptyIsAll = true,
- List<
T> selectedKeyList = const [], - List<
T> blockKeyList = const [], - Map<
T, E> itemMap = const {}, - double? width,
- required void onChanged(),
- SvgPicture? checkboxOn,
- SvgPicture? checkboxOff,
- 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,
});