RebuildWidgetOnStateChangeCondition<S> typedef

RebuildWidgetOnStateChangeCondition<S> = bool Function(S previous, S current)

Function which takes the previous state and the current state, it is responsible for returning a bool which determines whether to rebuild with the current state.

Implementation

typedef RebuildWidgetOnStateChangeCondition<S> = bool Function(
    S previous, S current);