BuilderCondition<S> typedef
BuilderCondition<S> =
bool Function(S previous, S current)
Signature for the buildWhen
function which takes the previous state
and
the current state
and is responsible for returning a bool which
determines whether to rebuild StateObserver with the current state
.
Implementation
typedef BuilderCondition<S> = bool Function(S previous, S current);