FetchCubit<F> constructor

FetchCubit<F>({
  1. String? timeoutMessage,
  2. String? unexpectedExceptionMessage,
  3. Stream<F>? dataUpdatedStream,
})

Implementation

FetchCubit({
  this.timeoutMessage,
  this.unexpectedExceptionMessage,
  Stream<F>? dataUpdatedStream,
}) : super(FetchInitial()) {
  _streamSubscription = dataUpdatedStream?.listen(_onDataUpdated);
}