addRule method

Adds a rule to the list

Implementation

ValidationRuleBuilder addRule(ValidationRule rule) {
  _rules.add(rule);
  return this;
}