Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit bbe7c28

Browse files
Googlernshahan
authored andcommitted
Fixes the StringSelectOptions example.
PiperOrigin-RevId: 207405330
1 parent da5a43a commit bbe7c28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/model/selection/string_selection_options.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ typedef bool StringSuggestionFilter<T>(T suggestion, String filterQuery);
3232
/// var options = new StringSelectionOptions<Color>(
3333
/// // list of colors
3434
/// [new Color (1, 'Red'), new Color(2, 'Blue'), new Color(3, 'Purple')],
35-
/// // converts color object to string for filtering.
36-
/// (Color color) => color.displayName.toLowerCase());
35+
/// toFilterableString: (Color color) => color.displayName.toLowerCase());
3736
/// ```
3837
class StringSelectionOptions<T> extends SelectionOptions<T>
3938
implements Filterable {

0 commit comments

Comments
 (0)