copyWith method

WorkflowTransitionRules copyWith({
  1. List<AppWorkflowTransitionRule>? conditions,
  2. List<AppWorkflowTransitionRule>? postFunctions,
  3. List<AppWorkflowTransitionRule>? validators,
  4. WorkflowId? workflowId,
})

Implementation

WorkflowTransitionRules copyWith(
    {List<AppWorkflowTransitionRule>? conditions,
    List<AppWorkflowTransitionRule>? postFunctions,
    List<AppWorkflowTransitionRule>? validators,
    WorkflowId? workflowId}) {
  return WorkflowTransitionRules(
    conditions: conditions ?? this.conditions,
    postFunctions: postFunctions ?? this.postFunctions,
    validators: validators ?? this.validators,
    workflowId: workflowId ?? this.workflowId,
  );
}