addError method

void addError(
  1. ValidationError error
)

Implementation

void addError(ValidationError error) {
  (_errors ??= []).add(error);
}