addError method

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

Adds an error to the sink.

The error must not be null.

Must not be called on a closed sink.

Implementation

@override
void addError(error, [StackTrace stackTrace]) {
  _sink.addError(error, stackTrace);
}