onSuggestionSelected property

dynamic Function(String) onSuggestionSelected
final

Callback function when a suggestion is selected. Basically, it takes the selected suggestion and put it in the text field. Then, it calls the onSubmitted callback function and unfocus the text field.

Implementation

final Function(String) onSuggestionSelected;