call method
Caller for validator.
Applies the Validator.translator before calling it.
Implementation
String? call(Object? value) {
if (validator(value) case String errorText) {
if (defaultInvalidText == errorText) return translator(key, errorText);
if (defaultRequiredText == errorText) return translator(key, errorText);
return errorText;
}
return null;
}