ChipInput<T> constructor
const
ChipInput<T> ({
- Key? key,
- TextEditingController? controller,
- BoxConstraints popoverConstraints = const BoxConstraints(maxHeight: 300),
- UndoHistoryController? undoHistoryController,
- String? initialText,
- ValueChanged<
String> ? onSubmitted, - FocusNode? focusNode,
- List<
T> suggestions = const [], - List<
T> chips = const [], - List<
TextInputFormatter> ? inputFormatters, - void onSuggestionChoosen(
- int index
- ValueChanged<
List< ? onChanged,T> > - bool useChips = true,
- ChipWidgetBuilder<
T> ? suggestionBuilder, - TextInputAction? textInputAction,
- String? placeholder,
- Widget suggestionLeadingBuilder(
- BuildContext,
- T
- Widget suggestionTrailingBuilder(
- BuildContext,
- T
- Widget? inputTrailingWidget,
- 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,
});