dependsOnAll method

RuleFor<T> dependsOnAll(
  1. Iterable<String> fieldNames
)

Declares multiple dependencies at once.

This is syntactic sugar over calling dependsOn repeatedly.

Implementation

RuleFor<T> dependsOnAll(Iterable<String> fieldNames) {
  for (final f in fieldNames) {
    dependsOn(f);
  }
  return this;
}