bloc_presentation library

Classes

BlocPresentationListener<B extends BlocPresentationMixin<dynamic, P>, P>
Widget that listens to new presentation events in a specified bloc.

Mixins

BlocPresentationMixin<S, P>
BlocPresentationMixin adds a presentation stream to a BlocBase which is automatically disposed.

Functions

useBlocPresentationListener<B extends BlocPresentationMixin<dynamic, P>, P>({required BlocPresentationWidgetListener<P> listener, B? bloc}) → void
Subscribes to the presentation stream and invokes listener on each event.

Typedefs

BlocPresentationWidgetListener<P> = void Function(BuildContext context, P event)
Signature for the listener function which takes the BuildContext along with the event and is responsible for executing in response to new events.