addError method

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

Sends or enqueues an error event to the stream.

Implementation

void addError(Object error, [StackTrace? stackTrace]) =>
    _addonController.addError(error, stackTrace);