Flat a State contained inside another State to be a single State.
factory State.flatten(State<S, State<S, A>> state) => state.flatMap(identity);