combineWith2<B, C> method

FutureValue<(A, B, C)> combineWith2<B, C>(
  1. FutureValue<B> one,
  2. FutureValue<C> two
)

Implementation

FutureValue<(A, B, C)> combineWith2<B, C>(
  FutureValue<B> one,
  FutureValue<C> two,
) =>
    combineWith(one).combineWith(two).when(
          data: (t) => FutureValue.data((
            t.$1.$1,
            t.$1.$2,
            t.$2,
          )),
          error: (error, stackTrace) => FutureValue.error(error, stackTrace),
          loading: (t) => FutureValue.loading(
            t != null
                ? (
                    t.$1.$1,
                    t.$1.$2,
                    t.$2,
                  )
                : null,
          ),
        );