ClueDropDownButton<T, E> constructor

const ClueDropDownButton<T, E>({
  1. Key? key,
  2. bool enabled = true,
  3. T? selectedKey,
  4. List<T> blockKeyList = const [],
  5. required Map<T, E> itemMap,
  6. double? width,
  7. Color? borderColor,
  8. required void onChanged(
    1. T key
    ),
  9. String? noneText,
  10. SvgPicture? arrowImage,
})

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,
});