DataListenerCondition<S> typedef
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 DataWidgetListener of DataListener
with the current state
.
Implementation
typedef DataListenerCondition<S> = bool Function(
Data<S> previous, Data<S> current);