Autocomplete<T extends Object> constructor
- Key? key,
- required AutocompleteOptionsBuilder<
T> optionsBuilder, - AutocompleteOptionToString<
T> displayStringForOption = RawAutocomplete.defaultStringForOption, - AutocompleteFieldViewBuilder fieldViewBuilder = _defaultFieldViewBuilder,
- AutocompleteOnSelected<
T> ? onSelected, - double optionsMaxHeight = 200.0,
- AutocompleteOptionsViewBuilder<
T> ? optionsViewBuilder, - OptionsViewOpenDirection optionsViewOpenDirection = OptionsViewOpenDirection.down,
- TextEditingValue? initialValue,
Creates an instance of Autocomplete.
Implementation
const Autocomplete({
super.key,
required this.optionsBuilder,
this.displayStringForOption = RawAutocomplete.defaultStringForOption,
this.fieldViewBuilder = _defaultFieldViewBuilder,
this.onSelected,
this.optionsMaxHeight = 200.0,
this.optionsViewBuilder,
this.optionsViewOpenDirection = OptionsViewOpenDirection.down,
this.initialValue,
});