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

QueryBlocBuilder<B extends BlocBase<AsyncQueryResult<T>>, T>({
  1. Key? key,
  2. B? bloc,
  3. Widget? child,
  4. required TransitionBuilder? idleBuilder,
  5. ValueWidgetBuilder<T>? presetBuilder,
  6. required TransitionBuilder workingBuilder,
  7. required ValueWidgetBuilder<Object> failedBuilder,
  8. required ValueWidgetBuilder<T> succeededBuilder,
  9. BlocBuilderCondition<AsyncQueryResult<T>>? buildWhen,
})

Implementation

QueryBlocBuilder({
  Key? key,
  B? bloc,
  Widget? child,
  required TransitionBuilder? idleBuilder,
  ValueWidgetBuilder<T>? presetBuilder,
  required TransitionBuilder workingBuilder,
  required ValueWidgetBuilder<Object> failedBuilder,
  required ValueWidgetBuilder<T> succeededBuilder,
  BlocBuilderCondition<AsyncQueryResult<T>>? buildWhen,
}) : super(
        key: key,
        bloc: bloc,
        builder: (context, result) => QueryResultBuilder<T>(
          result: result,
          child: child,
          idleBuilder: idleBuilder,
          presetBuilder: presetBuilder,
          workingBuilder: workingBuilder,
          failedBuilder: failedBuilder,
          succeededBuilder: succeededBuilder,
        ),
        buildWhen: buildWhen,
      );