getLocalBlocConsumer method

Widget getLocalBlocConsumer(
  1. BlocBuilderFunction builder, {
  2. BlocListenerFunction? listener,
})

Convenience method to instantiate a LocalBlocConsumer and facilitate overriding.

Implementation

Widget getLocalBlocConsumer(BlocBuilderFunction builder,
        {BlocListenerFunction? listener}) =>
    LocalBlocConsumer(builder, defaultListener: listener);