ParallelStep constructor
ParallelStep({
- required String name,
- required List<
ParallelTask< tasks,Task> > - FutureOr<
bool> precondition(- ExecutionContext context
- dynamic onStarted(
- ExecutionContext context
- dynamic onSucceeded(
- ExecutionContext context
- dynamic onError(
- ExecutionContext context,
- dynamic error,
- StackTrace stackTrace
- dynamic onCompleted(
- ExecutionContext context
- SkipConfiguration? skipConfig,
- RetryConfiguration? retryConfig,
- List<
BaseStep> branchesOnSucceeded = const [], - List<
BaseStep> branchesOnFailed = const [], - 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,
);