addError method

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

Adds an error event and notify it to listeners.

Implementation

void addError(Object error, [StackTrace? stackTrace]) {
  if (!_used) return;
  _controller.addError(error, stackTrace);
}