copyWith method

Workflow copyWith({
  1. DateTime? created,
  2. String? description,
  3. bool? hasDraftWorkflow,
  4. PublishedWorkflowId? id,
  5. bool? isDefault,
  6. WorkflowOperations? operations,
  7. List<ProjectDetails>? projects,
  8. List<WorkflowSchemeIdName>? schemes,
  9. List<WorkflowStatus>? statuses,
  10. List<Transition>? transitions,
  11. DateTime? updated,
})

Implementation

Workflow copyWith(
    {DateTime? created,
    String? description,
    bool? hasDraftWorkflow,
    PublishedWorkflowId? id,
    bool? isDefault,
    WorkflowOperations? operations,
    List<ProjectDetails>? projects,
    List<WorkflowSchemeIdName>? schemes,
    List<WorkflowStatus>? statuses,
    List<Transition>? transitions,
    DateTime? updated}) {
  return Workflow(
    created: created ?? this.created,
    description: description ?? this.description,
    hasDraftWorkflow: hasDraftWorkflow ?? this.hasDraftWorkflow,
    id: id ?? this.id,
    isDefault: isDefault ?? this.isDefault,
    operations: operations ?? this.operations,
    projects: projects ?? this.projects,
    schemes: schemes ?? this.schemes,
    statuses: statuses ?? this.statuses,
    transitions: transitions ?? this.transitions,
    updated: updated ?? this.updated,
  );
}