NiceValidatedField constructor
const
NiceValidatedField({
- Key? key,
- TextEditingController? controller,
- String? label,
- String? hint,
- List<
String? Function(String?)> validators = const [], - bool validateOnChange = true,
- bool validateOnBlur = true,
- InputDecoration? decoration,
- TextInputType? keyboardType,
- bool obscureText = false,
- int? maxLines = 1,
- int? maxLength,
- bool enabled = true,
- void onChanged()?,
- void onValidated()?,
- Widget? prefix,
- 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,
});