StringSelectionOptions<T>.withOptionGroups constructor
StringSelectionOptions<T>.withOptionGroups (
- List<
OptionGroup< optionGroups, {T> > - ItemRenderer<
T> ? toFilterableString, - StringSuggestionFilter<
T> ? suggestionFilter, - ItemRenderer<
String> sanitizeString = _stringFormatSuggestion, - bool shouldSort = false,
- bool shouldFilterEmpty = true,
Implementation
StringSelectionOptions.withOptionGroups(List<OptionGroup<T>> optionGroups,
{ItemRenderer<T>? toFilterableString,
StringSuggestionFilter<T>? suggestionFilter,
ItemRenderer<String> sanitizeString = _stringFormatSuggestion,
bool shouldSort = false,
bool shouldFilterEmpty = true})
: _toFilterableString =
toFilterableString ?? _defaultRenderer(sanitizeString),
_shouldSort = shouldSort,
_shouldFilterEmpty = shouldFilterEmpty,
_sanitizeString = sanitizeString,
super(optionGroups) {
_suggestionFilter = suggestionFilter ?? filterOption;
}