UITextField constructor

UITextField({
  1. UITextFieldDefaults? as,
  2. String? hint,
  3. String? label,
  4. dynamic validator(
    1. String value
    )?,
  5. double? borderRadius,
  6. UIBorderType? borderType,
  7. Color? borderColor,
  8. Color? focusBorderColor,
  9. Color? errorBorderColor,
  10. double? borderWidth,
  11. Color? hintColor,
  12. Color? labelColor,
  13. double? padding,
  14. bool? obscureText,
  15. TextInputType? keyboardType,
  16. required Function onChanged,
  17. Function? onTap,
  18. TextEditingController? controller,
  19. Color? bgColor,
  20. FloatingLabelBehavior? floatingLabelBehavior,
  21. Widget? suffix,
  22. Widget? prefix,
})

Implementation

UITextField({
  this.as,
  this.hint,
  this.label,
  this.validator,
  this.borderRadius,
  this.borderType,
  this.borderColor,
  this.focusBorderColor,
  this.errorBorderColor,
  this.borderWidth,
  this.hintColor,
  this.labelColor,
  this.padding,
  this.obscureText,
  this.keyboardType,
  required this.onChanged,
  this.onTap,
  this.controller,
  this.bgColor,
  this.floatingLabelBehavior,
  this.suffix,
  this.prefix,
});