DataBuilderCondition<S> typedef

DataBuilderCondition<S> = bool Function(Data<S> previous, Data<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 DataBuilder with the current state.

Implementation

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