flutter_bloc_effects library
Classes
-
BlocEffectListener<
B extends BlocEffectEmitter< E> , E> -
Takes a BlocEffectWidgetListener and an optional bloc and invokes
the listener in response to effect emissions from the bloc or
Cubit. -
BlocEffectListenerBase<
B extends BlocEffectEmitter< E> , E> -
Base class for widgets that listen to effect emissions from a specified
BlocorCubitwhich mixes in theBlocEffectEmittermixin. - MultiBlocEffectListener
- Merges multiple BlocEffectListener widgets into one widget tree.
Mixins
-
BlocEffectEmitter<
Effect>
Typedefs
-
BlocEffectListenerCondition<
E> = bool Function(E effect) -
An optional
listenWhencan be implemented for more granular control over whenlisteneris called. -
BlocEffectWidgetListener<
E> = void Function(BuildContext context, E effect) -
Signature for the
listenerfunction which takes the BuildContext along with the emittedeffectand is responsible for executing in response to effect emissions.