call method
Executes the validation logic against the given value.
Returns:
nullif thevalueis valid- errorMessage if validation fails
Implementation
String? call(String? value) {
final result = validate(value);
return result == null ? null : errorMessage;
}