addError method

void addError(
  1. Object error, [
  2. StackTrace? stackTrace
])

Adds an error to the subject.

Implementation

void addError(Object error, [StackTrace? stackTrace]) {
  _subject.addError(error, stackTrace);
}