CustomTextField constructor

const CustomTextField({
  1. Key? key,
  2. String? label,
  3. TextStyle? labelStyle,
  4. String? hint,
  5. TextEditingController? controller,
  6. String? validator(
    1. String?
    )?,
  7. TextInputType? keyboardType,
  8. InputDecoration? inputDecoration,
  9. bool obscureText = false,
  10. Widget? prefixIcon,
  11. Widget? suffixIcon,
  12. String? errorMsg,
  13. Color? errorColor,
  14. void onChanged(
    1. String
    )?,
  15. Color? borderColor,
  16. Color? focusedBorderColor,
  17. Color? textColor,
  18. Color? hintColor,
  19. Color? iconColor,
  20. bool isDisabled = false,
  21. bool isOptionalMark = false,
  22. Color? disabledBorderColor,
  23. Color? disabledTextColor,
  24. Color? disabledBackgroundColor,
})

Implementation

const CustomTextField({
  Key? key,
  this.label,
  this.labelStyle,
  this.hint,
  this.controller,
  this.validator,
  this.keyboardType,
  this.inputDecoration,
  this.obscureText = false,
  this.prefixIcon,
  this.suffixIcon,
  this.errorMsg,
  this.errorColor,
  this.onChanged,
  this.borderColor,
  this.focusedBorderColor,
  this.textColor,
  this.hintColor,
  this.iconColor,
  this.isDisabled = false,
  this.isOptionalMark = false,
  this.disabledBorderColor,
  this.disabledTextColor,
  this.disabledBackgroundColor,
}) : super(key: key);