ChipsInputController<T> constructor

ChipsInputController<T>({
  1. GenerateSuggestions<T>? findSuggestions,
  2. String? debugName,
  3. bool suggestOnType = true,
  4. String? placeholder,
  5. String? query,
  6. Iterable<T>? chips,
  7. DiffEquality? equality,
  8. ChipTokenizer<T>? tokenizer,
  9. 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"]),
      );