copyWith method

ProjectComponent copyWith({
  1. User? assignee,
  2. ProjectComponentAssigneeType? assigneeType,
  3. String? description,
  4. String? id,
  5. bool? isAssigneeTypeValid,
  6. User? lead,
  7. String? leadAccountId,
  8. String? leadUserName,
  9. String? name,
  10. String? project,
  11. int? projectId,
  12. User? realAssignee,
  13. ProjectComponentRealAssigneeType? realAssigneeType,
  14. String? self,
})

Implementation

ProjectComponent copyWith(
    {User? assignee,
    ProjectComponentAssigneeType? assigneeType,
    String? description,
    String? id,
    bool? isAssigneeTypeValid,
    User? lead,
    String? leadAccountId,
    String? leadUserName,
    String? name,
    String? project,
    int? projectId,
    User? realAssignee,
    ProjectComponentRealAssigneeType? realAssigneeType,
    String? self}) {
  return ProjectComponent(
    assignee: assignee ?? this.assignee,
    assigneeType: assigneeType ?? this.assigneeType,
    description: description ?? this.description,
    id: id ?? this.id,
    isAssigneeTypeValid: isAssigneeTypeValid ?? this.isAssigneeTypeValid,
    lead: lead ?? this.lead,
    leadAccountId: leadAccountId ?? this.leadAccountId,
    leadUserName: leadUserName ?? this.leadUserName,
    name: name ?? this.name,
    project: project ?? this.project,
    projectId: projectId ?? this.projectId,
    realAssignee: realAssignee ?? this.realAssignee,
    realAssigneeType: realAssigneeType ?? this.realAssigneeType,
    self: self ?? this.self,
  );
}