BlocWidgetBuilder<S> typedef

BlocWidgetBuilder<S> = Widget Function(BuildContext context, S state)

Signature for the builder function which takes the BuildContext and state and is responsible for returning a widget which is to be rendered. This is analogous to the builder function in StreamBuilder.

Implementation

typedef BlocWidgetBuilder<S> = Widget Function(BuildContext context, S state);