ChipsInputController<T> constructor
ChipsInputController<T> ({
- GenerateSuggestions<
T> ? findSuggestions, - String? debugName,
- bool suggestOnType = true,
- String? placeholder,
- String? query,
- Iterable<
T> ? chips, - DiffEquality? equality,
- ChipTokenizer<
T> ? tokenizer, - bool? hideSuggestionOverlay,
Implementation
ChipsInputController({
GenerateSuggestions<T>? findSuggestions,
String? debugName,
bool suggestOnType = true,
String? placeholder,
String? query,
Iterable<T>? chips,
DiffEquality? equality,
ChipTokenizer<T>? tokenizer,
bool? hideSuggestionOverlay,
}) : this._(
debugName ?? defaultDebugLabel,
chips ?? [],
placeholder,
query,
findSuggestions ??
((_) => const ChipSuggestions.empty())
as FutureOr<ChipSuggestions<T>> Function(String),
equality ?? const DiffEquality(),
suggestOnType,
hideSuggestionOverlay ?? false,
tokenizer as Iterable<String> Function(T?)? ?? ((t) => ["$t"]),
);