bloc_ease library

Classes

BlocEaseMultiStateBuilder
A widget that listens to multiple Bloc states and builds accordingly.
BlocEaseMultiStateListener<S extends BlocEaseState>
A widget that listens to multiple Bloc states and triggers a callback when states change.
BlocEaseState<T>
A sealed class representing the state of a Bloc.
BlocEaseStateBuilder<B extends BlocBase<BlocEaseState<T>>, T>
A custom builder widget for Bloc states that provides type-safe success objects.
BlocEaseStateConsumer<B extends BlocBase<BlocEaseState<T>>, T>
A custom consumer widget for Bloc states that provides type-safe success objects.
BlocEaseStateListener<B extends BlocBase<BlocEaseState<T>>, T>
A custom listener widget for Bloc states that provides type-safe success objects.
BlocEaseStateListenerState<B extends BlocBase<BlocEaseState<T>>, T>
BlocEaseStateWidgetProvider
Provides default widgets for InitialState, LoadingState, and FailureState.
BlocEaseUtil
Utility class for BlocEase related functions.
FailureState<T>
Represents the failed state of a Bloc.
InitialState<T>
Represents the initial state of a Bloc.
LoadingState<T>
Represents the loading state of a Bloc.
SuccessState<T>
Represents the success state of a Bloc.

Mixins

CacheExBlocEaseStateMixin<T>
Caches the last state of InitialState, LoadingState, SuccessState & FailureState. Can access the ex states via exInitialState, exLoadingState, exSuccessState & exFailureState.
StateDebounce<T>
Mixin that provides debouncing functionality for state emissions.

Extensions

BlocBaseX on BlocBase<BlocEaseState<T>>
ContextX on BuildContext
Extension on BuildContext to easily access the default state builders.

Typedefs

FailureBuilder = Widget Function([String? message, dynamic exception, VoidCallback? retryCallback])
Typedef for a builder function that returns a widget for the failure state.
FailureListener = void Function([String? message, dynamic exception, VoidCallback? retryCallback])
Typedef for a listener function that is called for the failure state.
FailureStateBuilder<T> = Widget Function(FailureState<T> failureState)
Typedef for a builder function that returns a widget for the failure state with a generic type.
FailureStateListener<T> = void Function(FailureState<T> failureState)
Typedef for a listener function that is called for the failure state with a generic type.
InitialBuilder = Widget Function()
Typedef for a builder function that returns a widget for the initial state.
InitialListener = VoidCallback
Typedef for a listener function that is called for the initial state.
InitialStateBuilder<T> = Widget Function(InitialState<T> initialState)
Typedef for a builder function that returns a widget for the initial state with a generic type.
InitialStateListener<T> = void Function(InitialState<T> initialState)
Typedef for a listener function that is called for the initial state with a generic type.
LoadingBuilder = Widget Function([String? message, double? progress])
Typedef for a builder function that returns a widget for the loading state.
LoadingListener = void Function([String? message, double? progress])
Typedef for a listener function that is called for the loading state.
LoadingStateBuilder<T> = Widget Function(LoadingState<T> loadingState)
Typedef for a builder function that returns a widget for the loading state with a generic type.
LoadingStateListener<T> = void Function(LoadingState<T> loadingState)
Typedef for a listener function that is called for the loading state with a generic type.
SuccessBuilder<T> = Widget Function(T success)
Typedef for a builder function that returns a widget for the success state.
SuccessListener<T> = void Function(T success)
Typedef for a listener function that is called for the success state.
SuccessStateBuilder<T> = Widget Function(SuccessState<T> successState)
Typedef for a builder function that returns a widget for the success state with a generic type.
SuccessStateListener<T> = void Function(SuccessState<T> successState)
Typedef for a listener function that is called for the success state with a generic type.