map2<C, D> method

  1. @override
Task<D> map2<C, D>(
  1. covariant Task<C> mc,
  2. D f(
    1. A a,
    2. C c
    )
)
override

Change type of this Task based on its value of type A and the value of type C of another Task.

Implementation

@override
Task<D> map2<C, D>(covariant Task<C> mc, D Function(A a, C c) f) =>
    flatMap((a) => mc.map((c) => f(a, c)));