ViewStateBuilderCondition<T> typedef
ViewStateBuilderCondition<T> =
bool Function(ViewState<T> previous, ViewState<T> current)
Signature for the buildWhen
function which takes the previous ViewState
and the current ViewState
and returns a bool which determines whether
to rebuild the view
with the current state
.
Implementation
typedef ViewStateBuilderCondition<T> = bool Function(
ViewState<T> previous,
ViewState<T> current,
);