map2<C, D> method

  1. @override
State<S, D> map2<C, D>(
  1. covariant State<S, C> m1,
  2. D f(
    1. A a,
    2. C c
    )
)
override

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

Implementation

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