addError method
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);
}
}