every<T> static method
Implementation
static Validator<T> every<T>(
List<Validator<T>> validators, {
String? error,
}) =>
(value, context) {
final validator = AndValidator(validators, context);
final result = validator.validate(value);
if (result.isValid) return (true, null);
return (false, error ?? 'A validator passed, which is not allowed');
};