CustomTextField constructor

CustomTextField({
  1. Key? key,
  2. required TextEditingController textController,
  3. String hintText = "",
  4. String validatorName = "",
  5. TextInputAction textInputAction = TextInputAction.next,
  6. TextCapitalization textCapitalization = TextCapitalization.sentences,
  7. TextInputType keyboardType = TextInputType.text,
  8. bool isPasswordField = false,
  9. bool readMode = false,
  10. bool hasOnchange = false,
  11. dynamic onTap()?,
  12. dynamic onChanged(
    1. String
    )?,
  13. bool autoValidate = true,
  14. int? maxLength,
  15. int? maxLines,
  16. List<TextInputFormatter>? inputFormatters,
  17. String? labelText,
  18. String? suffixIcon,
  19. FocusNode? focusNode,
  20. int? minLines,
  21. Color? enabledBorderColor,
  22. FormFieldValidator? customValidator,
  23. Widget? suffixWidget,
  24. Function? suffixOnTap,
})

Implementation

CustomTextField({
  super.key,
  required this.textController,
  this.hintText = "",
  this.validatorName = "",
  this.textInputAction = TextInputAction.next,
  this.textCapitalization = TextCapitalization.sentences,
  this.keyboardType = TextInputType.text,
  this.isPasswordField = false,
  this.readMode = false,
  this.hasOnchange = false,
  this.onTap,
  this.onChanged,
  this.autoValidate = true,
  this.maxLength,
  this.maxLines,
  this.inputFormatters,
  this.labelText,
  this.suffixIcon,
  this.focusNode,
  this.minLines,
  this.enabledBorderColor,
  this.customValidator,
  this.suffixWidget,
  this.suffixOnTap,
});