addError abstract method

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

Adds an error to the sink with an optional stackTrace.

Must not be called on a closed sink.

Implementation

void addError(Object error, [StackTrace? stackTrace]);