compose method

RuleFor<T> compose(
  1. FormFieldValidator<T> validator
)

Adds a single validator to this rule chain.

After adding, the composed validator is (re)applied to the target control.

Implementation

RuleFor<T> compose(FormFieldValidator<T> validator) {
  _validators.add(validator);
  _applyValidator();
  return this;
}