error<S> static method
Creates an always failing validator
Implementation
static Validator<S> error<S>(dynamic error) {
return (_) => Left([error]);
}
Creates an always failing validator
static Validator<S> error<S>(dynamic error) {
return (_) => Left([error]);
}