addError abstract method
Add an error to the sink.
Like add, it will return immediately if the error is handled straight away. Otherwise will return a Future that will resolve when the error has been handled.
Implementation
@override
FutureOr<void> addError(Object error, [StackTrace? stackTrace]);