ChipInputTextField<T> constructor

ChipInputTextField<T>({
  1. Key? key,
  2. bool showSuggestions = false,
  3. List<T> initialValue = const [],
  4. InputDecoration decoration = const InputDecoration(),
  5. bool enabled = true,
  6. TextStyle? textStyle,
  7. double? suggestionsBoxMaxHeight,
  8. TextInputType inputType = TextInputType.emailAddress,
  9. TextOverflow textOverflow = TextOverflow.clip,
  10. bool obscureText = false,
  11. bool autocorrect = true,
  12. int elevation = 5,
  13. Color backgroundColor = Colors.white,
  14. Color borderColor = Colors.blue,
  15. double borderWidth = 0.0,
  16. TextInputAction inputAction = TextInputAction.done,
  17. bool autofocus = false,
  18. bool allowChipEditing = false,
  19. FocusNode? focusNode,
  20. List<T>? frequentSuggestions,
  21. int maxLines = 5,
  22. required ValueChanged<String>? onChange,
  23. required InputSuggestions<T> suggestionFinder,
  24. required ChipsBuilder<T> chipBuilder,
  25. required SuggestionBuilder<T> suggestionBuilder,
  26. 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);