BlocListenerCondition<S> typedef

BlocListenerCondition<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 BlocListener with the current state.

Implementation

typedef BlocListenerCondition<S> = bool Function(S previous, S current);