StateSetter<P, S> typedef

StateSetter<P, S> = S Function(P props, S prevState)

StateSetter function that given the previous state and the next props returns the next state.

Implementation

typedef S StateSetter<P, S>(P props, S prevState);