addError method

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

Adds an error event and notify it to listeners.

Implementation

@override
void addError(Object error, [StackTrace? stackTrace]) {
  var es = eventStream;
  if (es == null) {
    _addErrorBuffer.add([error, stackTrace]);
  } else {
    es.addError(error, stackTrace);
  }
}