ActionBlocBuilder<B extends BlocBase<AsyncActionResult>> constructor

ActionBlocBuilder<B extends BlocBase<AsyncActionResult>>({
  1. Key? key,
  2. B? bloc,
  3. WidgetBuilder? pendingBuilder,
  4. WidgetBuilder? waitingBuilder,
  5. FailedResultBuilder? failedBuilder,
  6. required WidgetBuilder builder,
  7. BlocBuilderCondition<AsyncActionResult>? buildWhen,
})

Implementation

ActionBlocBuilder({
  Key? key,
  B? bloc,
  WidgetBuilder? pendingBuilder,
  WidgetBuilder? waitingBuilder,
  FailedResultBuilder? failedBuilder,
  required WidgetBuilder builder,
  BlocBuilderCondition<AsyncActionResult>? buildWhen,
}) : super(
        key: key,
        bloc: bloc,
        builder: (context, result) => ActionResultBuilder(
          result: result,
          pendingBuilder: pendingBuilder,
          waitingBuilder: waitingBuilder,
          failedBuilder: failedBuilder,
          builder: builder,
        ),
        buildWhen: buildWhen,
      );