validate method
This method should return null if the field is valid, a string corresponding to the error otherwise.
Implementation
@override
String? validate(String? value) {
if (value == null || value.length < minStringLength) return error(value);
return null;
}