CustomTextField constructor
const
CustomTextField({
- Key? key,
- TextEditingController? controller,
- String? label,
- String? hint,
- String? helperText,
- String? errorText,
- Widget? prefixIcon,
- Widget? suffixIcon,
- bool obscureText = false,
- bool enabled = true,
- int maxLines = 1,
- int? maxLength,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - String? validator()?,
- List<
TextInputFormatter> ? inputFormatters,
Implementation
const CustomTextField({
super.key,
this.controller,
this.label,
this.hint,
this.helperText,
this.errorText,
this.prefixIcon,
this.suffixIcon,
this.obscureText = false,
this.enabled = true,
this.maxLines = 1,
this.maxLength,
this.keyboardType,
this.textInputAction,
this.onChanged,
this.onSubmitted,
this.validator,
this.inputFormatters,
});