AutocompleteOptionsViewBuilder<T extends Object> typedef
The type of the RawAutocomplete callback which returns a Widget that
displays the specified options
and calls onSelected
if the user
selects an option.
The returned widget from this callback will be wrapped in an AutocompleteHighlightedOption inherited widget. This will allow this callback to determine which option is currently highlighted for keyboard navigation.
See also:
- RawAutocomplete.optionsViewBuilder, which is of this type.
Implementation
typedef AutocompleteOptionsViewBuilder<T extends Object> = Widget Function(
BuildContext context,
AutocompleteOnSelected<T> onSelected,
Iterable<T> options,
);