addError method

void addError(
  1. ValidationError error
)

Implementation

void addError(ValidationError error) {
  errors.add(error);
}