condition property
The RxBlocListenerCondition that the RxBlocListenerBase will invoke.
The condition function will be invoked on each bloc state change.
The condition takes the previous state and current state and
must return a bool
which determines whether or not the listener function will be invoked.
The previous state will be initialized to state
when the RxBlocListenerBase is initialized.
condition is optional and if it isn't implemented,
it will default to true
.
Implementation
final RxBlocListenerCondition<S>? condition;