TextFieldWithError constructor

const TextFieldWithError({
  1. required Widget label,
  2. bool showError = false,
  3. bool showCounter = false,
  4. bool autocorrect = false,
  5. bool enabled = true,
  6. bool enableSuggestions = false,
  7. bool obscureText = false,
  8. String? errorText,
  9. String? hintText,
  10. TextInputType keyboardType = TextInputType.text,
  11. TextInputAction textInputAction = TextInputAction.done,
  12. List<TextInputFormatter>? inputFormatters,
  13. Widget? prefixIcon,
  14. Widget? suffixIcon,
  15. ValueChanged<String>? onChanged,
  16. ValueChanged<String>? onSubmitted,
  17. VoidCallback? onTapOutside,
  18. int? maxLength,
  19. TextEditingController? controller,
  20. 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,
});