ActionResultBuilder.sync constructor

ActionResultBuilder.sync({
  1. Key? key,
  2. required ActionResult result,
  3. Widget? child,
  4. required ValueWidgetBuilder<Object> failedBuilder,
  5. required TransitionBuilder succeededBuilder,
})

Consume ActionResult

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),
      );