error<S> static method

Validator<S> error<S>(
  1. dynamic error
)

Creates an always failing validator

Implementation

static Validator<S> error<S>(dynamic error) {
  return (_) => Left([error]);
}