bloc_event_status library

A Flutter package that provides a way to manage the state of events in a Flutter application using the BLoC pattern.

Classes

BlocBuilderWithCustomEventStatus<TBloc extends BlocCustomEventStatusMixin<TEvent, TState, TStatus>, TEvent, TEventSubType extends TEvent, TState, TStatus>
A widget that listens to event statuses from a bloc and invokes a builder function in response to new statuses.
BlocBuilderWithEventStatus<TBloc extends BlocEventStatusMixin<TEvent, TState>, TEvent, TEventSubType extends TEvent, TState>
A widget that listens to event statuses from a bloc and invokes a builder function in response to new statuses.
BlocCustomEventStatusBuilder<TBloc extends BlocCustomEventStatusMixin<TEvent, TState, TStatus>, TEvent, TEventSubType extends TEvent, TState, TStatus>
A widget that listens to event statuses from a bloc and invokes a builder function in response to new statuses.
BlocCustomEventStatusListener<TBloc extends BlocCustomEventStatusMixin<TEvent, dynamic, TStatus>, TEvent, TEventSubType extends TEvent, TStatus>
A widget that listens to event statuses from a bloc and invokes a listener function in response to new statuses.
BlocEventStatusBuilder<TBloc extends BlocEventStatusMixin<TEvent, TState>, TEvent, TEventSubType extends TEvent, TState>
A widget that listens to event statuses from a bloc and invokes a builder function in response to new statuses.
BlocEventStatusContainer<TEvent, TState, TStatus>
A container that tracks and broadcasts status updates for bloc events.
BlocEventStatusListener<TBloc extends BlocEventStatusMixin<TEvent, dynamic>, TEvent, TEventSubType extends TEvent>
A widget that listens to event statuses from a bloc and invokes a listener function in response to new statuses.
EventStatus
Represents the status of an event.
FailureEventStatus<TFailure extends Exception>
Represents a failed event status with optional error information.
LoadingEventStatus
Represents the loading state of an event.
MultiBlocBuilderWithCustomEventStatus<TBloc extends BlocCustomEventStatusMixin<TEvent, TState, TStatus>, TEvent, TState, TStatus>
A widget that listens to event statuses from a bloc and invokes a builder function in response to new statuses.
MultiBlocBuilderWithEventStatus<TBloc extends BlocEventStatusMixin<TEvent, TState>, TEvent, TState>
A widget that listens to event statuses from a bloc and invokes a builder function in response to new statuses.
MultiBlocCustomEventStatusBuilder<TBloc extends BlocCustomEventStatusMixin<TEvent, TState, TStatus>, TEvent, TState, TStatus>
A widget that listens to event statuses from a bloc and invokes a builder function in response to new statuses.
MultiBlocCustomEventStatusListener<TBloc extends BlocCustomEventStatusMixin<TEvent, dynamic, TStatus>, TEvent, TStatus>
A widget that listens to event statuses from a bloc and invokes a listener function in response to new statuses.
MultiBlocEventStatusBuilder<TBloc extends BlocEventStatusMixin<TEvent, TState>, TEvent, TState>
A widget that listens to event statuses from a bloc and invokes a builder function in response to new statuses.
MultiBlocEventStatusListener<TBloc extends BlocEventStatusMixin<TEvent, dynamic>, TEvent>
A widget that listens to event statuses from a bloc and invokes a listener function in response to new statuses.
SuccessEventStatus<TData>
Represents a successful event status with optional data.

Mixins

BlocCustomEventStatusMixin<TEvent, TState, TStatus>
A mixin that adds event status tracking capabilities to a Bloc.
BlocEventStatusMixin<TEvent, TState>
A mixin that adds event status tracking capabilities to a Bloc.

Typedefs

BlocCustomEventStatusBuilderCondition<TStatus> = bool Function(TStatus? previous, TStatus current)
Signature for the buildWhen function which takes the previous and current status of type TStatus and returns a boolean value.
BlocCustomEventStatusListenerCondition<TStatus> = bool Function(TStatus? previous, TStatus current)
Signature for the listenWhen function which takes the previous and current status of type TStatus and returns a boolean value.
BlocCustomEventStatusWidgetBuilder<TEvent, TStatus> = Widget Function(BuildContext context, TEvent? event, TStatus? status)
Signature for the builder function which takes the context along with the event and status as parameters.
BlocCustomEventStatusWidgetListener<TEventSubType, TStatus> = void Function(BuildContext context, TEventSubType event, TStatus status)
Signature for the listener function which takes the context along with the event and status as parameters.
BlocEventFilterBuilder<TEventSubType> = bool Function(TEventSubType event)
Signature for the filter function which takes an event of type TEventSubType and returns a boolean value.
BlocEventFilterListener<TEventSubType> = bool Function(TEventSubType event)
Signature for the filter function which takes an event of type TEventSubType and returns a boolean value.
BlocWidgetBuilderWithCustomEventStatus<TEvent, TStatus, TState> = Widget Function(BuildContext context, TEvent? event, TStatus? status, TState state)
Signature for the builder function which takes the context along with the event, status and state as parameters.
EventStatusUpdate<TEvent, TStatus> = ({TEvent event, TStatus status})
A record type that associates an event with its updated status.