StatedBlocConsumer<B extends BlocBase<TS>, TS extends Stated> constructor

StatedBlocConsumer<B extends BlocBase<TS>, TS extends Stated>({
  1. Key? key,
  2. B? bloc,
  3. Widget? child,
  4. required CallBuilder<StatedBuilderPatternBuilder<TS>> buildPatternDefs,
  5. BlocBuilderCondition<TS>? buildWhen,
  6. required CallBuilder<StatedConsumerPatternBuilder<TS>> listenPatternDefs,
  7. BlocListenerCondition<TS>? listenWhen,
})

Implementation

StatedBlocConsumer({
  Key? key,
  B? bloc,
  Widget? child,
  required CallBuilder<StatedBuilderPatternBuilder<TS>> buildPatternDefs,
  BlocBuilderCondition<TS>? buildWhen,
  required CallBuilder<StatedConsumerPatternBuilder<TS>> listenPatternDefs,
  BlocListenerCondition<TS>? listenWhen,
}) : super(
        key: key,
        bloc: bloc,
        builder: (context, stated) => StatedBuilder(
          stated: stated,
          patternDefs: buildPatternDefs,
        ),
        buildWhen: buildWhen,
        listener: StatedConsumer(listenPatternDefs),
        listenWhen: listenWhen,
      );