validate method
Implementation
String? validate(String? value) {
for (final validator in _validators) {
final errorMessage = validator(value);
if (errorMessage?.isNotEmpty ?? false) {
return errorMessage;
}
}
return null;
}