menu
cowpay package
documentation
core/packages/dartz/dartz.dart
StateMonad<S>
gets<A> method
gets<A> method
dark_mode
light_mode
gets<
A
>
method
State
<
S
,
A
>
gets
<
A
>(
A
f
(
S
s
)
)
Implementation
State<S, A> gets<A>(A f(S s)) => new State((S s) => new Tuple2(f(s), s));
cowpay package
documentation
core/packages/dartz/dartz
StateMonad<S>
gets<A> method
StateMonad class