ChipInputTextField<T> constructor
ChipInputTextField<T> ({
- Key? key,
- bool showSuggestions = false,
- List<
T> initialValue = const [], - InputDecoration decoration = const InputDecoration(),
- bool enabled = true,
- TextStyle? textStyle,
- double? suggestionsBoxMaxHeight,
- TextInputType inputType = TextInputType.emailAddress,
- TextOverflow textOverflow = TextOverflow.clip,
- bool obscureText = false,
- bool autocorrect = true,
- int elevation = 5,
- Color backgroundColor = Colors.white,
- Color borderColor = Colors.blue,
- double borderWidth = 0.0,
- TextInputAction inputAction = TextInputAction.done,
- bool autofocus = false,
- bool allowChipEditing = false,
- FocusNode? focusNode,
- List<
T> ? frequentSuggestions, - int maxLines = 5,
- required ValueChanged<
String> ? onChange, - required InputSuggestions<
T> suggestionFinder, - required ChipsBuilder<
T> chipBuilder, - required SuggestionBuilder<
T> suggestionBuilder, - required ValidationCallBack<
T> validate,
Creates a ChipInputTextField.
Implementation
ChipInputTextField({
Key? key,
this.showSuggestions = false,
this.initialValue = const [],
this.decoration = const InputDecoration(),
this.enabled = true,
this.textStyle,
this.suggestionsBoxMaxHeight,
this.inputType = TextInputType.emailAddress,
this.textOverflow = TextOverflow.clip,
this.obscureText = false,
this.autocorrect = true,
this.elevation = 5,
this.backgroundColor = Colors.white,
this.borderColor = Colors.blue,
this.borderWidth = 0.0,
this.inputAction = TextInputAction.done,
this.autofocus = false,
this.allowChipEditing = false,
this.focusNode,
this.frequentSuggestions,
this.maxLines = 5,
required this.onChange,
required this.suggestionFinder,
required this.chipBuilder,
required this.suggestionBuilder,
required this.validate,
}) : super(key: key);