ActionResultBuilder.sync constructor
ActionResultBuilder.sync({
- Key? key,
- required ActionResult result,
- Widget? child,
- required ValueWidgetBuilder<
Object> failedBuilder, - required TransitionBuilder succeededBuilder,
Consume ActionResult
failedBuilder
- Builder to be used when ActionResult.failed is given.succeededBuilder
- Builder to be used when ActionResult.succeeded is given.
Implementation
ActionResultBuilder.sync({
Key? key,
required ActionResult result,
Widget? child,
required ValueWidgetBuilder<Object> failedBuilder,
required TransitionBuilder succeededBuilder,
}) : super(
key: key,
stated: result,
child: child,
patternDefs: (b) => b
..error(OnState.isFailed(), failedBuilder)
..unit(OnState.isSuceeded(), succeededBuilder),
);