copyWith method
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,
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,
);
}