CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. dynamic customValidator,
  3. dynamic vertical,
  4. dynamic prefixIcon,
  5. dynamic suffixIcon,
  6. dynamic hintText,
  7. dynamic obscureText,
  8. dynamic controller,
  9. bool readOnly = false,
  10. bool? digitOnly = false,
  11. int? lengthLimiting,
  12. Function? onChanged,
  13. TextInputType? textInputType,
  14. int? maxLength,
  15. dynamic onTap,
  16. String? label,
  17. bool isRequired = false,
  18. bool withValidate = false,
  19. bool isMobileNumber = false,
  20. double? width,
  21. String? errorText,
})

Implementation

const CustomTextField(
    {Key? key,
      this.customValidator,
      this.vertical,
      this.prefixIcon,
      this.suffixIcon,
      this.hintText,
      this.obscureText,
      this.controller,
      this.readOnly = false,
      this.digitOnly = false,
      this.lengthLimiting,
      this.onChanged,
      this.textInputType,
      this.maxLength,
      this.onTap,
      this.label,
      this.isRequired = false,
      this.withValidate = false, this.isMobileNumber = false, this.width, this.errorText})
    : super(key: key);