StatedBlocConsumer<B extends BlocBase<TS> , TS extends Stated>.patterns constructor
StatedBlocConsumer<B extends BlocBase<TS> , TS extends Stated>.patterns ({})
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,
);