addError method

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

Reports an error which triggers onError with an optional StackTrace. If close has already been called, any subsequent calls to addError will be ignored and will not result in any subsequent state changes.

Implementation

@override
void addError(Object error, [StackTrace? stackTrace]) =>
    onError(error, stackTrace ?? StackTrace.current);