RxBlocListenerCondition<S> typedef

RxBlocListenerCondition<S> = bool Function(S? previous, S? current)

Signature for the condition function which takes the previous state and the current state and is responsible for returning a bool which determines whether or not to call RxBlocWidgetListener of RxBlocListener with the current state.

Implementation

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