StateListenerCondition<S> typedef
StateListenerCondition<S> =
bool Function(S previous, S current)
Function that determines when a listener should be called.
Implementation
typedef StateListenerCondition<S> = bool Function(S previous, S current);