getGlobalBlocConsumer method

Widget getGlobalBlocConsumer(
  1. BlocBuilderFunction builder, {
  2. BlocListenerFunction? listener,
  3. WidgetNodeSpec? node,
})

Convenience method to instantiate a GlobalBlocConsumer and facilitate overriding.

Implementation

Widget getGlobalBlocConsumer(BlocBuilderFunction builder,
        {BlocListenerFunction? listener, WidgetNodeSpec? node}) =>
    GlobalBlocConsumer(builder, defaultListener: listener, node: node);