FlutterBusWidgetBuilder<T> typedef

FlutterBusWidgetBuilder<T> = Widget Function(BuildContext context, T? event)

Signature for strategies that build widgets based on FlutterBus data. The widget gets the build context and the lastEvent published on the FlutterBus. The first build will use the builders' initialData and only for the initialData can the event be null since initialData is not required.

Implementation

typedef FlutterBusWidgetBuilder<T> = Widget Function(
  BuildContext context,
  T? event,
);