TagEditor constructor

const TagEditor({
  1. required int length,
  2. double minTextFieldWidth = 160.0,
  3. double tagSpacing = 4.0,
  4. required Widget tagBuilder(
    1. BuildContext,
    2. int
    ),
  5. required ValueChanged<String> onTagChanged,
  6. Key? key,
  7. FocusNode? focusNode,
  8. bool hasAddButton = true,
  9. List<String> delimiters = const [],
  10. IconData? icon,
  11. bool enabled = true,
  12. TextEditingController? controller,
  13. TextStyle? textStyle,
  14. InputDecoration inputDecoration = const InputDecoration(),
  15. TextInputType? keyboardType,
  16. TextInputAction? textInputAction,
  17. TextCapitalization textCapitalization = TextCapitalization.none,
  18. TextAlign textAlign = TextAlign.start,
  19. TextDirection? textDirection,
  20. bool readOnly = false,
  21. bool autofocus = false,
  22. bool autocorrect = false,
  23. bool enableSuggestions = true,
  24. int maxLines = 1,
  25. bool resetTextOnSubmitted = false,
  26. ValueChanged<String>? onSubmitted,
  27. Brightness? keyboardAppearance,
})

Implementation

const TagEditor({
  required this.length,
  this.minTextFieldWidth = 160.0,
  this.tagSpacing = 4.0,
  required this.tagBuilder,
  required this.onTagChanged,
  Key? key,
  this.focusNode,
  this.hasAddButton = true,
  this.delimiters = const [],
  this.icon,
  this.enabled = true,
  // TextField's properties
  this.controller,
  this.textStyle,
  this.inputDecoration = const InputDecoration(),
  this.keyboardType,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.textAlign = TextAlign.start,
  this.textDirection,
  this.readOnly = false,
  this.autofocus = false,
  this.autocorrect = false,
  this.enableSuggestions = true,
  this.maxLines = 1,
  this.resetTextOnSubmitted = false,
  this.onSubmitted,
  this.keyboardAppearance,
}) : super(key: key);