addError abstract method

  1. @override
  2. @protected
  3. @mustCallSuper
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
@protected
@mustCallSuper
void addError(Object error, [StackTrace? stackTrace]);