addError method

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

Adds an error to the stream.

Implementation

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