validated method
T?
validated(
- S subject
Returns the validated and transformed subject If validation of subject fails returns null
Implementation
T? validated(S subject) {
return this(subject).fold(
(errors) {
return null;
},
(s) => s,
);
}