NiceValidatedField constructor

const NiceValidatedField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? label,
  4. String? hint,
  5. List<String? Function(String?)> validators = const [],
  6. bool validateOnChange = true,
  7. bool validateOnBlur = true,
  8. InputDecoration? decoration,
  9. TextInputType? keyboardType,
  10. bool obscureText = false,
  11. int? maxLines = 1,
  12. int? maxLength,
  13. bool enabled = true,
  14. void onChanged(
    1. String
    )?,
  15. void onValidated(
    1. String?
    )?,
  16. Widget? prefix,
  17. Widget? suffix,
})

Implementation

const NiceValidatedField({
  super.key,
  this.controller,
  this.label,
  this.hint,
  this.validators = const [],
  this.validateOnChange = true,
  this.validateOnBlur = true,
  this.decoration,
  this.keyboardType,
  this.obscureText = false,
  this.maxLines = 1,
  this.maxLength,
  this.enabled = true,
  this.onChanged,
  this.onValidated,
  this.prefix,
  this.suffix,
});