copyWith method

WorkflowRules copyWith({
  1. WorkflowCondition? conditionsTree,
  2. List<WorkflowTransitionRule>? postFunctions,
  3. List<WorkflowTransitionRule>? validators,
})

Implementation

WorkflowRules copyWith(
    {WorkflowCondition? conditionsTree,
    List<WorkflowTransitionRule>? postFunctions,
    List<WorkflowTransitionRule>? validators}) {
  return WorkflowRules(
    conditionsTree: conditionsTree ?? this.conditionsTree,
    postFunctions: postFunctions ?? this.postFunctions,
    validators: validators ?? this.validators,
  );
}