Skip to main content

AutocompleteOptionsBuilder

Type Alias AutocompleteOptionsBuilder 

Source
pub type AutocompleteOptionsBuilder<T> = Rc<dyn Fn(&mut App, TextEditingValue) -> Task<Vec<T>>>;
Expand description

The type of the RawAutocomplete callback which computes the list of optional completions for the widget’s field, based on the text the user has entered so far.

Dart’s FutureOr<Iterable<T>>: a builder that has its options at hand returns Task::ready.

See also:

Aliased Type§

pub struct AutocompleteOptionsBuilder<T> { /* private fields */ }