combineState2<B, Z> method

Stream<LoadingState<Z>> combineState2<B, Z>(
  1. Stream<LoadingState<B>> stateStream2,
  2. Z transform(
    1. A rawContent1,
    2. B rawContent2
    )
)

Implementation

Stream<LoadingState<Z>> combineState2<B, Z>(Stream<LoadingState<B>> stateStream2, Z Function(A rawContent1, B rawContent2) transform) {
  return CombineLatestStream.combine2(this, stateStream2, (LoadingState<A> state1, LoadingState<B> state2) => state1.zip2(state2, transform));
}