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