RaiseListenerOnCondition<S> typedef
RaiseListenerOnCondition<S> =
bool Function(S previous, S current)
Function which takes the previous state
and the current state
and is responsible for returning a bool which
determines whether or not to call listener function with the current state
.
Implementation
typedef RaiseListenerOnCondition<S> = bool Function(S previous, S current);