StatedBlocConsumer<B extends BlocBase<TS> , TS extends Stated> constructor
StatedBlocConsumer<B extends BlocBase<TS> , TS extends Stated> ({
- Key? key,
- B? bloc,
- Widget? child,
- required CallBuilder<
StatedBuilderPatternBuilder< buildPatternDefs,TS> > - BlocBuilderCondition<
TS> ? buildWhen, - required CallBuilder<
StatedConsumerPatternBuilder< listenPatternDefs,TS> > - 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,
);