BlocPresentationWidgetListener<P> typedef

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.

Implementation

typedef BlocPresentationWidgetListener<P> = void Function(
  BuildContext context,
  P event,
);