design_system/components/forms/auto_suggestions_box_models library
Classes
-
AutoSuggestion<
T> - One suggestion row. value is what the host receives on select; label is the text shown and matched against.
- AutoSuggestionMatching
- Pure matching + highlight helpers (shared by sources and the view).
-
AutoSuggestionsSource<
T> -
Produces suggestions for a query. Subclass for custom behaviour, or use the
AutoSuggestionsSource.list /
.strings/.asyncfactories. - HighlightSpan
-
A
[start, end)slice of a label that matched the query — the view bolds it. - StringSuggestions
-
Convenience builder for a plain
List<String>(value == label).
Enums
- AutoSuggestionMatch
- How a query string is tested against a suggestion's haystack.