onSuggestionChoosen property
Callback for handling suggestion selection.
Called with the index of the selected suggestion when a user chooses an item from the autocomplete list. The callback is responsible for adding the suggestion to the chip list.
Implementation
final void Function(int index)? onSuggestionChoosen;