add method

void add(
  1. ValidatorFn validation
)

Implementation

void add(ValidatorFn validation) {
  // Shouldn't add the same validator
  assert(!_delegates.contains(validation));
  _delegates.add(validation);
  _validator = null; // Reset the validator so that is is rebuilt.
}