riverpod_effects 1.0.0
riverpod_effects: ^1.0.0 copied to clipboard
One-time side effects (navigation, snackbars, dialogs) for Riverpod.
1.0.0 #
- Unified
EffectMixin— single mixin works for both syncNotifierandAsyncNotifier. Replaces the previousEffectMixin+AsyncEffectMixin. EffectsNotifier<E, T>— base class extendingNotifier<T>with effects pre-applied.AsyncEffectsNotifier<E, T>— base class extendingAsyncNotifier<T>with effects pre-applied.createEffectEmitter()— overridable factory for configuringreplay.- Lazy emitter initialization — emitter is created on first access, not during
runBuild(). This avoids the need foron AnyNotifierconstraints.
0.0.1 #
- Initial release.
UiEffect— base class for one-time effects.EffectMixin— mixin for sync Riverpod notifiers with automatic lifecycle.AsyncEffectMixin— mixin for async Riverpod notifiers.EffectConsumer— widget to listen and react to effects in the UI.EffectListener— low-level stateful listener widget.EffectEmitter— stream-based effect emitter with optional replay.