bloc_ease library

Classes

BlocEaseStateWidgetsProvider
Used to configure default widget for InitialState, LoadingState and FailedState. Wrap over any widget to change the default widgets for these states for its widget sub-tree.
FailedState<T>
FourStateBuilder<B extends BlocBase<FourStates<T>>, T>
Can be used instead of BlocBuilder. Only need to handle success state with 'succeedBuilder' field. Initial, Loading, Failed states are all handled automatically with the configuration we provided with BlocEaseStateWidgetsProvider.
FourStateConsumer<B extends BlocBase<FourStates<T>>, T>
Can be used instead of BlocConsumer. 'succeedBuilder' is the only required param. Provides success object in typesafe manner.
FourStateListener<B extends BlocBase<FourStates<T>>, T>
Can be used instead of BlocListener. Provides success object in typesafe manner.
FourStates<T>
InitialState<T>
LoadingState<T>
SucceedState<T>

Extensions

ContextX on BuildContext