VerifyProperties<S> extension

Extension for methods related to subfield validations.

on

Methods

check(Predicate<S> predicate, {required dynamic error}) Validator<S>
Creates a new validator that nests checks on an object field.
checkField<F>(Selector<S, F?> selector, Validator<F> verification) Validator<S>
Creates a new validator by nesting the provided one.
ignoreNull() Validator<S>
Ignore calling validator when input is null.
ignoreWhen(Predicate<S> condition) Validator<S>
Ignore calling validator when the give predicate holds.