ActionBlocBuilder<B extends BlocBase<AsyncActionResult>> constructor

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

Implementation

ActionBlocBuilder({
  Key? key,
  B? bloc,
  Widget? child,
  required TransitionBuilder? idleBuilder,
  required TransitionBuilder workingBuilder,
  required ValueWidgetBuilder<Object> failedBuilder,
  required TransitionBuilder succeededBuilder,
  BlocBuilderCondition<AsyncActionResult>? buildWhen,
}) : super(
        key: key,
        bloc: bloc,
        builder: (context, result) => ActionResultBuilder(
          result: result,
          child: child,
          idleBuilder: idleBuilder ?? workingBuilder,
          workingBuilder: workingBuilder,
          failedBuilder: failedBuilder,
          succeededBuilder: succeededBuilder,
        ),
        buildWhen: buildWhen,
      );