validate method
Implementation
@override
List<String>? validate(String? value) {
if (value == null || value.isEmpty || value.length <= maxLength) {
return null;
}
return [
ValidationErrorsLocalized.MAX_LENGTH
.replaceAll("{{0}}", maxLength.toString())
];
}