bloc_notification library
Classes
-
BlocNotification<
N> - Class contain notification fired from BlocNotificationMixin
-
BlocNotificationConsumer<
B extends BlocNotificationMixin< S, N> , S, N> -
Similar to the
BlocConsumer
widget, the BlocNotificationConsumer widget is used to wrap a BlocNotificationListener and take anotificationListener
callback. -
BlocNotificationListener<
B extends BlocNotificationMixin< S, N> , S, N> -
The BlocNotificationListener is a widget that listens for notifications
from a
BlocBase
that uses the BlocNotificationMixin, and passes them to a callback provided by the user. This widget is similar to theBlocListener
widget, but is specialized for handling notifications that are not tied to the state.
Mixins
-
BlocNotificationMixin<
State, N> -
The BlocNotificationMixin is a Flutter Bloc mixin that provides a simple
notification mechanism for handling UI-related actions separately from the
state. By using this mixin, you can fire notifications from the
Bloc
and handle them in the UI layer using a callback mechanism, without having to manage them in the state. - NotificationObserverMixin
-
Mixin for
BlocObserver
to additionally listen to notification fired from BlocNotificationMixin
Typedefs
-
BlocWidgetNotificationListener<
N> = void Function(BuildContext context, N notification) -
Type for
notificationListener
parameter.