QueryBlocConsumer<B extends BlocBase<AsyncQueryResult<T> > , T> constructor
QueryBlocConsumer<B extends BlocBase<AsyncQueryResult<T> > , T> ({
- Key? key,
- WidgetBuilder? pendingBuilder,
- WidgetBuilder? waitingBuilder,
- FailedResultBuilder? failedBuilder,
- required ValueResultBuilder<
T> builder, - required BlocWidgetListener<
AsyncQueryResult< listener,T> > - B? bloc,
- BlocBuilderCondition<
AsyncQueryResult< ? buildWhen,T> > - BlocBuilderCondition<
AsyncQueryResult< ? listenWhen,T> >
Implementation
QueryBlocConsumer({
Key? key,
WidgetBuilder? pendingBuilder,
WidgetBuilder? waitingBuilder,
FailedResultBuilder? failedBuilder,
required final ValueResultBuilder<T> builder,
required BlocWidgetListener<AsyncQueryResult<T>> listener,
B? bloc,
BlocBuilderCondition<AsyncQueryResult<T>>? buildWhen,
BlocBuilderCondition<AsyncQueryResult<T>>? listenWhen,
}) : super(
key: key,
bloc: bloc,
builder: (context, result) => QueryResultBuilder(
result: result,
pendingBuilder: pendingBuilder,
waitingBuilder: waitingBuilder,
failedBuilder: failedBuilder,
builder: builder,
),
buildWhen: buildWhen,
listener: listener,
listenWhen: listenWhen,
);