onStreamError method
- called when ever the stream emits error
important
super.onStreamError
must return
this
Implementation
@mustCallSuper
@protected
Future<void> onStreamError(
Object error,
StackTrace stackTrace,
Emitter<State> emit,
) async {}