andThen method

Formix<T, E> andThen(
  1. Formix<T, E> next
)

Chains this validator with next, running next only if this passes.

final validator = requiredRule
  .andThen(emailFormatRule)
  .andThen(uniqueEmailRule);

Implementation

Formix<T, E> andThen(Formix<T, E> next) => AndThen(this, next);