optionsViewBuilder property

AutocompleteOptionsViewBuilder<T> optionsViewBuilder
final

Builds the selectable options widgets from a list of options objects.

The options are displayed floating below or above the field using a CompositedTransformFollower inside of an Overlay, not at the same place in the widget tree as RawAutocomplete. To control whether it opens upward or downward, use optionsViewOpenDirection.

In order to track which item is highlighted by keyboard navigation, the resulting options will be wrapped in an inherited AutocompleteHighlightedOption widget. Inside this callback, the index of the highlighted option can be obtained from AutocompleteHighlightedOption.of to display the highlighted option with a visual highlight to indicate it will be the option selected from the keyboard.

Implementation

final AutocompleteOptionsViewBuilder<T> optionsViewBuilder;