ClueDropDownButton<T, E> constructor
const
ClueDropDownButton<T, E> ({})
Creates a ClueDropDownButton.
enabled
determines if the dropdown is enabled.
selectedKey
is the initially selected key.
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.
borderColor
specifies the border color of the dropdown button.
onChanged
is the callback function when the selected key changes.
noneText
is the text to display when no item is selected.
arrowImage
is the arrow image to display in the dropdown button.
Implementation
const ClueDropDownButton({
super.key,
this.enabled = true,
this.selectedKey,
this.blockKeyList = const [],
required this.itemMap,
this.width,
this.borderColor,
required this.onChanged,
this.noneText,
this.arrowImage,
});