onStreamError method

  1. @mustCallSuper
  2. @protected
Future<void> onStreamError(
  1. Object error,
  2. StackTrace stackTrace,
  3. Emitter<State> emit
)
  • 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 {}