suggestionsCallback property
SuggestionsCallback<T>
suggestionsCallback
final
Called with the search pattern to get matching suggestions.
Example:
suggestionsCallback: (search) {
return Service.of(context).getSuggestions(search);
}
If this returns null, the suggestions box will be invisible.
See also:
- debounceDuration, which is the duration to wait for changes in the text field before updating suggestions.
Implementation
final SuggestionsCallback<T> suggestionsCallback;