map3<C, D, E> method

  1. @override
State<S, E> map3<C, D, E>(
  1. covariant State<S, C> m1,
  2. covariant State<S, D> m2,
  3. E f(
    1. A a,
    2. C c,
    3. D d
    )
)
override

Change type of this State based on its value of type A, the value of type C of a second State, and the value of type D of a third State.

Implementation

@override
State<S, E> map3<C, D, E>(covariant State<S, C> m1, covariant State<S, D> m2,
        E Function(A a, C c, D d) f) =>
    flatMap((a) => m1.flatMap((c) => m2.map((d) => f(a, c, d))));