ViewStateListenerCondition typedef

ViewStateListenerCondition = bool Function(ViewState previous, ViewState current)

Signature for the listenWhen function which takes the previous ViewState and the current ViewState and is responsible for returning a bool which determines whether or not to call the listener function.

Implementation

typedef ViewStateListenerCondition = bool Function(
  ViewState previous,
  ViewState current,
);