TextFieldPro constructor

const TextFieldPro({
  1. Key? key,
  2. bool? readonly = false,
  3. Widget? errorWidget,
  4. String? errorbg = "1",
  5. String? hintText,
  6. EdgeInsets? padding,
  7. TextEditingController? controller,
  8. String? label,
  9. Widget? labelWidget,
  10. Widget? prefixIcon,
  11. Widget? suffixIcon,
  12. bool? isPassword = false,
  13. bool? isRequired = false,
  14. String? prefix,
  15. Widget? suffix,
  16. bool? isValidate = false,
  17. List<TextInputFormatter>? inputFormatters,
  18. VoidCallback? onEditingComplete,
  19. FormFieldValidator<String>? validator,
  20. GestureTapCallback? onTap,
  21. ValueChanged<String>? onChangeTextField,
  22. FormFieldSetter<String>? onSavedTextField,
  23. TextInputType? keyboardType,
  24. String? counterText,
  25. int? maxLength,
  26. Color? borderColor,
  27. String? errorMessage,
  28. IconData? errorIcon,
  29. Color? errorBackgroundColor,
  30. String? initialValue,
})

Implementation

const TextFieldPro(
    {Key? key,
    this.readonly = false,
    this.errorWidget,
    this.errorbg = "1",
    this.hintText,
    this.padding,
    this.controller,
    this.label,
    this.labelWidget,
    this.prefixIcon,
    this.suffixIcon,
    this.isPassword = false,
    this.isRequired = false,
    this.prefix,
    this.suffix,
    this.isValidate = false,
    this.inputFormatters,
    this.onEditingComplete,
    this.validator,
    this.onTap,
    this.onChangeTextField,
    this.onSavedTextField,
    this.keyboardType,
    this.counterText,
    this.maxLength,
    this.borderColor,
    this.errorMessage,
    this.errorIcon,
    this.errorBackgroundColor,
    this.initialValue})
    : super(key: key);