BlocBuilderCondition<S> typedef

BlocBuilderCondition<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 BlocBuilder with the current state.

Implementation

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