onSelected property

ValueSetter<T>? onSelected
final

Called when a suggestion is selected.

If hideOnSelect is true, the suggestions box will be closed after this callback is called.

You may also add a callback like this to the SuggestionsController.selections stream.

Implementation

final ValueSetter<T>? onSelected;