onSelectItem property
void Function(T item)?
onSelectItem
final
The action to take when the user selects an item. If it's null, the dropdown is only in view-mode and items cannot be selected.
Implementation
final void Function(T item)? onSelectItem;