Description:
I am working on a custom MultiDropdown widget in Flutter. I want to dynamically change the suffix icon and its onTap action when _dropdownController.selectedItems is not empty. Currently, this is the following code:
Problem:
I want to modify the suffix icon (Icons.clear) and its onTap action based on the state of _dropdownController.selectedItems.isNotEmpty. However, I am not sure how to properly implement this feature in my MultiDropdown widget.
Description: I am working on a custom
MultiDropdown
widget in Flutter. I want to dynamically change the suffix icon and itsonTap
action when_dropdownController.selectedItems
is not empty. Currently, this is the following code:Problem: I want to modify the suffix icon (
Icons.clear
) and itsonTap
action based on the state of_dropdownController.selectedItems.isNotEmpty
. However, I am not sure how to properly implement this feature in myMultiDropdown
widget.Package-Version: multi_dropdown: ^3.0.0-dev.5