StepFailureHandler typedef

StepFailureHandler = Future<FailureAction> Function(SetupStepResult result, {required int attempt})

Callback invoked when a step fails AND fail-fast is enabled. The wizard implementation pretty-prints the failure (with result.message and result.fixHint) and prompts the user. CLI callers running with interactive: false can supply a fixed-policy implementation (e.g. always FailureAction.abort).

attempt starts at 1 for the first failure of a given step and increments by one per retry.

Implementation

typedef StepFailureHandler =
    Future<FailureAction> Function(
      SetupStepResult result, {
      required int attempt,
    });