or<T> static method

FormFieldValidator<T> or<T>(
  1. List<FormFieldValidator<T>> validators
)

FormFieldValidator that combines multiple validators, passing validation if any return null.

Parameters:

  • validators The list of validators to compose.

Implementation

static FormFieldValidator<T> or<T>(List<FormFieldValidator<T>> validators) =>
    OrValidator<T>(validators).validate;