ActionBlocBuilder<B extends BlocBase<AsyncActionResult> > constructor
ActionBlocBuilder<B extends BlocBase<AsyncActionResult> > ({
- Key? key,
- B? bloc,
- Widget? child,
- required TransitionBuilder? idleBuilder,
- required TransitionBuilder workingBuilder,
- required ValueWidgetBuilder<
Object> failedBuilder, - required TransitionBuilder succeededBuilder,
- 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,
);