AutocompleteManager 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

Constructors

AutocompleteManager(Autocompleter autocompleter)

Properties

autocompleter Autocompleter
final
hashCode int
The hash code for this object.
no setterinherited
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
waitForTestPurpose() Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited