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

StatedBlocConsumer<B extends BlocBase<TS>, TS extends Stated>.patterns({
  1. Key? key,
  2. B? bloc,
  3. Widget? child,
  4. required Map<OnState<Stated>, ValueWidgetBuilder<Stated>> patterns,
  5. BlocBuilderCondition<TS>? buildWhen,
  6. required BlocWidgetListener<TS> listener,
  7. BlocListenerCondition<TS>? listenWhen,
})

Implementation

StatedBlocConsumer.patterns({
  Key? key,
  B? bloc,
  Widget? child,
  required Map<OnState, ValueWidgetBuilder<Stated>> patterns,
  BlocBuilderCondition<TS>? buildWhen,
  required BlocWidgetListener<TS> listener,
  BlocListenerCondition<TS>? listenWhen,
}) : super(
        key: key,
        bloc: bloc,
        builder: (context, stated) => StatedBuilder.patterns(
          stated: stated,
          patterns: patterns,
        ),
        buildWhen: buildWhen,
        listener: listener,
        listenWhen: listenWhen,
      );