Skip to content

Commit b18d17a

Browse files
gnpricechrisbobbe
authored andcommitted
autocomplete [nfc]: Fix RawAutocomplete types in comment
The type argument here is the one passed to RawAutocomplete; it doesn't know anything about this widget's CandidateT type parameter.
1 parent fd10d4f commit b18d17a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/widgets/autocomplete.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ class _AutocompleteFieldState<QueryT extends AutocompleteQuery, ResultT extends
106106
optionsBuilder: (_) => _resultsToDisplay,
107107
optionsViewOpenDirection: OptionsViewOpenDirection.up,
108108
// RawAutocomplete passes these when it calls optionsViewBuilder:
109-
// AutocompleteOnSelected<CandidateT> onSelected,
110-
// Iterable<CandidateT> options,
109+
// AutocompleteOnSelected<ResultT> onSelected,
110+
// Iterable<ResultT> options,
111111
//
112112
// We ignore them:
113113
// - `onSelected` would cause some behavior we don't want,

0 commit comments

Comments
 (0)