any static method

AskValidator any(
  1. List<AskValidator> validators
)

Takes an array of validators. The input is considered valid if any one of the validators returns true. The validators are processed in order from left to right. If none of the validators pass then the error from the first validator that failed is returned. The implications is that the user will only ever see the error from the first validator.

Implementation

static AskValidator any(List<AskValidator> validators) =>
    _AskValidatorAny(validators);