TextFieldWithError constructor
const
TextFieldWithError({ - required Widget label,
- bool showError = false,
- bool showCounter = false,
- bool autocorrect = false,
- bool enabled = true,
- bool enableSuggestions = false,
- bool obscureText = false,
- String? errorText,
- String? hintText,
- TextInputType keyboardType = TextInputType.text,
- TextInputAction textInputAction = TextInputAction.done,
- List<TextInputFormatter>? inputFormatters,
- Widget? prefixIcon,
- Widget? suffixIcon,
- ValueChanged<String>? onChanged,
- ValueChanged<String>? onSubmitted,
- VoidCallback? onTapOutside,
- int? maxLength,
- TextEditingController? controller,
- Key? key,
})
Implementation
const TextFieldWithError({
required this.label,
this.showError = false,
this.showCounter = false,
this.autocorrect = false,
this.enabled = true,
this.enableSuggestions = false,
this.obscureText = false,
this.errorText,
this.hintText,
this.keyboardType = TextInputType.text,
this.textInputAction = TextInputAction.done,
this.inputFormatters,
this.prefixIcon,
this.suffixIcon,
this.onChanged,
this.onSubmitted,
this.onTapOutside,
this.maxLength,
this.controller,
super.key,
});