reusable_bloc_base library

Classes

BaseBloc<A, E extends BaseEvent, S extends BaseState<A, S>>
BaseEvent
BaseState<ActionType, S extends BaseState<ActionType, S>>
BaseStateListener<ActionType, BlocType extends BaseBloc<ActionType, BaseEvent, State>, State extends BaseState<ActionType, State>>
BlocStateReactor
DisposeResourceEvent
A event to dispose the bloc. This event will be called when the bloc is disposed.
InitBlocEvent
A event to initialize the bloc. will execute only once when the bloc is created. Subsequent calls will be ignored.
ReactorFactory
RefreshDataEvent
A event to update/refresh the state's main data. This event can be called multiple times.
StateReactor

Mixins

BlocContinuousHistorySnapshot<B, S>
This helps to keep a history of the states that the bloc has gone through. Mostly for debugging purposes.

Extensions

BaseBlocExtension on Bloc<dynamic, T>
BlocEtensions on Bloc<dynamic, T>

Typedefs

BaseStateReactorCallback<T extends AnyState> = FutureOr<void> Function(BuildContext context, T state)
BaseStateReactorWithoutState = FutureOr<void> Function(BuildContext context)
LoggerMethod = void Function(Object? object)
ReactorCallbackAgainstState<T extends AnyState> = FutureOr<void> Function(BuildContext context, T state)
Selector<S> = dynamic Function(S state)
SimpleReactor = FutureOr<void> Function(BuildContext context)