CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. bool isPassword = false,
  3. bool isNumber = false,
  4. int? length,
  5. TextCapitalization textCapitalization = TextCapitalization.none,
  6. required TextEditingController textController,
  7. String? validator(
    1. String?
    )?,
  8. double? cornerRadius,
  9. String? title,
  10. String? placeHolderText,
  11. TextAlign? textAlign,
  12. String? prefixText,
  13. Widget? prefix,
  14. TextInputAction? textInputAction,
  15. int? lines,
  16. bool? showCounterText = false,
  17. Widget? suffix,
  18. bool readOnly = false,
  19. dynamic onTap()?,
  20. List<TextInputFormatter>? inputFormatters,
})

Implementation

const CustomTextField(
    {super.key,
    this.isPassword = false,
    this.isNumber = false,
    this.length,
    this.textCapitalization = TextCapitalization.none,
    required this.textController,
    this.validator,
    this.cornerRadius,
    this.title,
    this.placeHolderText,
    this.textAlign,
    this.prefixText,
    this.prefix,
    this.textInputAction,
    this.lines,
    this.showCounterText = false,
    this.suffix,
    this.readOnly = false,
    this.onTap,
    this.inputFormatters});