TextFieldCustom constructor

const TextFieldCustom(
  1. TextEditingController control,
  2. FocusNode? focus,
  3. FocusNode? nextFocus,
  4. String hintText, {
  5. bool isPassword = false,
  6. bool readOnly = false,
  7. TextInputAction inputAction = TextInputAction.next,
  8. double? iconSize,
  9. Widget? suffix,
  10. void onPressIcon()?,
  11. TextInputType type = TextInputType.text,
  12. dynamic border,
  13. Color? borderColor,
  14. BoxConstraints? constraint,
  15. int? maxLength,
  16. int maxLine = 1,
  17. EdgeInsets? padding,
  18. double? size,
  19. Color textColor = Colors.black,
  20. EdgeInsets? paddingIcon,
  21. Function? onSubmit,
  22. Function? onChanged,
  23. List<TextInputFormatter>? inputFormatters,
  24. double sizeBorder = 5.0,
  25. Color color = Colors.white,
  26. TextAlign align = TextAlign.left,
  27. bool? isOdd,
  28. int odd = 3,
  29. Widget? prefix,
  30. void onPressPrefixIcon()?,
  31. bool? showCounter,
  32. void onTap()?,
  33. int hintMaxLine = 1,
  34. Key? key,
})

Implementation

const TextFieldCustom(this.control, this.focus, this.nextFocus, this.hintText, {
  this.isPassword = false, this.readOnly = false, this.inputAction = TextInputAction.next, this.iconSize,
  this.suffix, this.onPressIcon, this.type = TextInputType.text, this.border, this.borderColor, this.constraint,
  this.maxLength, this.maxLine = 1, this.padding, this.size, this.textColor = Colors.black, this.paddingIcon,
  this.onSubmit, this.onChanged, this.inputFormatters, this.sizeBorder = 5.0, this.color = Colors.white,
  this.align = TextAlign.left, this.isOdd, this.odd = 3, this.prefix, this.onPressPrefixIcon, this.showCounter,
  this.onTap, this.hintMaxLine = 1, Key? key}) :super(key: key);