QueryBlocConsumer<B extends BlocBase<AsyncQueryResult<T>>, T> constructor

QueryBlocConsumer<B extends BlocBase<AsyncQueryResult<T>>, T>({
  1. Key? key,
  2. WidgetBuilder? pendingBuilder,
  3. WidgetBuilder? waitingBuilder,
  4. FailedResultBuilder? failedBuilder,
  5. required ValueResultBuilder<T> builder,
  6. required BlocWidgetListener<AsyncQueryResult<T>> listener,
  7. B? bloc,
  8. BlocBuilderCondition<AsyncQueryResult<T>>? buildWhen,
  9. BlocBuilderCondition<AsyncQueryResult<T>>? listenWhen,
})

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,
      );