map2<C, D> method

  1. @override
TaskOption<D> map2<C, D>(
  1. covariant TaskOption<C> m1,
  2. D f(
    1. R b,
    2. C c
    )
)
override

Change the return type of this TaskOption based on its value of type R and the value of type C of another TaskOption.

Implementation

@override
TaskOption<D> map2<C, D>(
        covariant TaskOption<C> m1, D Function(R b, C c) f) =>
    flatMap((b) => m1.map((c) => f(b, c)));