ParallelStep constructor

ParallelStep({
  1. required String name,
  2. required List<ParallelTask<Task>> tasks,
  3. FutureOr<bool> precondition(
    1. ExecutionContext context
    )?,
  4. dynamic onStarted(
    1. ExecutionContext context
    )?,
  5. dynamic onSucceeded(
    1. ExecutionContext context
    )?,
  6. dynamic onError(
    1. ExecutionContext context,
    2. dynamic error,
    3. StackTrace stackTrace
    )?,
  7. dynamic onCompleted(
    1. ExecutionContext context
    )?,
  8. SkipConfiguration? skipConfig,
  9. RetryConfiguration? retryConfig,
  10. List<BaseStep> branchesOnSucceeded = const [],
  11. List<BaseStep> branchesOnFailed = const [],
  12. List<BaseStep> branchesOnCompleted = const [],
})

Returns the new instance of ParallelStep.

Implementation

ParallelStep({
  required String name,
  required List<ParallelTask> tasks,
  FutureOr<bool> Function(ExecutionContext context)? precondition,
  Function(ExecutionContext context)? onStarted,
  Function(ExecutionContext context)? onSucceeded,
  Function(ExecutionContext context, dynamic error, StackTrace stackTrace)?
      onError,
  Function(ExecutionContext context)? onCompleted,
  SkipConfiguration? skipConfig,
  RetryConfiguration? retryConfig,
  List<BaseStep> branchesOnSucceeded = const [],
  List<BaseStep> branchesOnFailed = const [],
  List<BaseStep> branchesOnCompleted = const [],
}) : super(
        name: name,
        tasks: tasks,
        precondition: precondition,
        onStarted: onStarted,
        onError: onError,
        onSucceeded: onSucceeded,
        onCompleted: onCompleted,
        skipConfig: skipConfig,
        retryConfig: retryConfig,
        branchesOnSucceeded: branchesOnSucceeded,
        branchesOnFailed: branchesOnFailed,
        branchesOnCompleted: branchesOnCompleted,
      );