any<T> static method
when valid
- any validator return null
Implementation
static FormeValidator<T> any<T>(List<FormeValidator<T>> validators,
{String errorText = ''}) {
return (f, T v) {
for (final FormeValidator<T> validator in validators) {
if (validator(f, v) == null) {
return null;
}
}
return errorText;
};
}