addError method

void addError(
  1. String error
)

Adds an error to the validation context

Implementation

void addError(String error) {
  _errors.add(error);
}