ChipInput<T> constructor

const ChipInput<T>({
  1. Key? key,
  2. TextEditingController? controller,
  3. BoxConstraints popoverConstraints = const BoxConstraints(maxHeight: 300),
  4. UndoHistoryController? undoHistoryController,
  5. String? initialText,
  6. ValueChanged<String>? onSubmitted,
  7. FocusNode? focusNode,
  8. List<T> suggestions = const [],
  9. List<T> chips = const [],
  10. List<TextInputFormatter>? inputFormatters,
  11. void onSuggestionChoosen(
    1. int index
    )?,
  12. ValueChanged<List<T>>? onChanged,
  13. bool useChips = true,
  14. ChipWidgetBuilder<T>? suggestionBuilder,
  15. TextInputAction? textInputAction,
  16. String? placeholder,
  17. Widget suggestionLeadingBuilder(
    1. BuildContext,
    2. T
    )?,
  18. Widget suggestionTrailingBuilder(
    1. BuildContext,
    2. T
    )?,
  19. Widget? inputTrailingWidget,
  20. required ChipWidgetBuilder<T> chipBuilder,
})

Implementation

const ChipInput({
  super.key,
  this.controller,
  this.popoverConstraints = const BoxConstraints(
    maxHeight: 300,
  ),
  this.undoHistoryController,
  this.initialText,
  this.onSubmitted,
  this.focusNode,
  this.suggestions = const [],
  this.chips = const [],
  this.inputFormatters,
  this.onSuggestionChoosen,
  this.onChanged,
  this.useChips = true,
  this.suggestionBuilder,
  this.textInputAction,
  this.placeholder,
  this.suggestionLeadingBuilder,
  this.suggestionTrailingBuilder,
  this.inputTrailingWidget,
  required this.chipBuilder,
});