addError method

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

Add error to the measurements stream.

Implementation

void addError(Object error, [StackTrace? stacktrace]) =>
    _measurementsController.addError(error, stacktrace);