MPSFunctionBuilder<T> typedef

MPSFunctionBuilder<T> = Widget Function(BuildContext context, MPSEvent<T> event, Widget? child)

Function builder used to build a widget with an MPSEvent event.

The context parameter is the build context passed from the _MPSBuilderState widget.

The event parameter is the event object that contains the type of the event and the data associated with it. It is updated each time an event is dispatched in any of the subscribed topics.

The child parameter is an optional child widget to be included in the builder.

Returns the built widget tree based on the provided MPSEvent object.

Implementation

typedef MPSFunctionBuilder<T> = Widget Function(
  BuildContext context,
  MPSEvent<T> event,
  Widget? child,
);