SuggestionManager class
Manager that returns the suggestions for the latest input.
Typical use case: the user types one character (which triggers a call to suggestions), then another character (which triggers another call). What if the second call is much faster than the first one, for server or connection reasons? The autocomplete widget will get the second suggestions, then the first suggestions will override them. And the user should get the suggestions that match the latest input.
- Implemented types
- Annotations
-
- @Deprecated('Use TagTypeAutocompleter and AutocompleteManager instead')
Constructors
- SuggestionManager(TagType taxonomyType, {required OpenFoodFactsLanguage language, OpenFoodFactsCountry? country, String? categories, String? shape, int limit = 25, UriProductHelper uriHelper = uriHelperFoodProd, User? user})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- manager → AutocompleteManager
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getSuggestions(
String input) → Future< List< String> > -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited