bloc_event_status 2.1.1
bloc_event_status: ^2.1.1 copied to clipboard
Track the status of events in a bloc without updating the state.
2.1.0 #
Changed #
- Widened SDK constraint from
^3.6.1to>=3.5.0 <4.0.0.
Added #
EventStatusConditionsextension onEventStatusesMixinwith helpers forbuildWhen/listenWhencallbacks:statusChanged<E>()—trueifstatusOf<E>()differs between previous and current.eventStatusChanged<E>()—trueifeventStatusOf<E>()differs (full record comparison).statusChangedTo<E, S>()—trueifstatusOf<E>()changed and current status is of typeS.eventStatusChangedTo<E, S>()—trueifeventStatusOf<E>()changed and current status is of typeS.lastEventStatusChanged()—trueiflastEventStatusdiffers.lastEventStatusChangedTo<S>()—trueiflastEventStatuschanged and current status is of typeS.
2.0.0 #
Breaking Changes #
- Removed
flutter_bloc,flutter, andnesteddependencies. The package is now pure Dart and depends onblocdirectly. - Removed all custom Flutter widgets (
BlocEventStatusBuilder,BlocEventStatusListener, etc.) and the stream-based event status delivery. Use standardflutter_blocwidgets (BlocListener,BlocBuilder,BlocSelector) instead. - Removed
BlocEventStatusContainerand associated mixins. Event statuses are now stored as anEventStatusesfield on the BLoC state.
Added #
EventStatuses<TEvent, TStatus>— immutable,Equatablecontainer that tracks event statuses by type.EventStatusesMixin<TEvent, TStatus>— convenience mixin for direct state-level access tostatusOf,eventOf,eventStatusOf, andlastEventStatus.EventStatusUpdate<TEvent, TStatus>— record typedef returned by query methods.BlocEventStatusannotation andblocEventStatusconstant for use with thebloc_event_status_generatorcode generator.
1.1.1 – 2025-07-06 #
Changed #
- Widened
flutter_blocdependency to support both 8.x and 9.x:flutter_bloc: ">=8.0.0 <10.0.0"
1.0.0 #
- Initial release of
bloc_event_statuspackage.