CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. required TextEditingController textEditingController,
  3. String? label,
  4. TextInputType? textInputType,
  5. bool? readOnly,
  6. bool? autofocus,
  7. TextStyle? textStyle,
  8. bool? enabled,
  9. String? validator(
    1. String?
    )?,
  10. String? hintText,
  11. TextStyle? hintTextStyle,
  12. TextCapitalization textCapitalization = TextCapitalization.characters,
  13. int? maxLines,
  14. bool showCounter = false,
  15. TextStyle? counterStyle,
  16. int? maxLength,
  17. Widget? suffix,
  18. Pattern? pattern,
  19. bool wrapCustomBorder = false,
  20. String? errorText,
  21. EdgeInsets? padding,
  22. FocusNode? focusNode,
  23. TextStyle? labelStyle,
  24. void onChanged(
    1. String
    )?,
  25. bool obscureText = false,
  26. String obscuringCharacter = '•',
})

Implementation

const CustomTextField({
  super.key,
  required this.textEditingController,
  this.label,
  this.textInputType,
  this.readOnly,
  this.autofocus,
  this.textStyle,
  this.enabled,
  this.validator,
  this.hintText,
  this.hintTextStyle,
  this.textCapitalization = TextCapitalization.characters,
  this.maxLines,
  this.showCounter = false,
  this.counterStyle,
  this.maxLength,
  this.suffix,
  this.pattern,
  this.wrapCustomBorder = false,
  this.errorText,
  this.padding,
  this.focusNode,
  this.labelStyle,
  this.onChanged,
  this.obscureText = false,
  this.obscuringCharacter = '•',
});