all static method

AskValidator all(
  1. List<AskValidator> validators
)

Takes an array of validators. The input is considered valid only if everyone of the validators pass.

The validators are processed in order from left to right.

The error from the first validator that failes is returned.

It should be noted that the user input is passed to each validator in turn and each validator has the opportunity to modify the input. As a result a validators will be operating on a version of the input that has been processed by all validators that appear earlier in the list.

Implementation

static AskValidator all(List<AskValidator> validators) =>
    _AskValidatorAll(validators);