copyWith method

Project copyWith({
  1. bool? archived,
  2. User? archivedBy,
  3. DateTime? archivedDate,
  4. ProjectAssigneeType? assigneeType,
  5. AvatarUrlsBean? avatarUrls,
  6. List<ProjectComponent>? components,
  7. bool? deleted,
  8. User? deletedBy,
  9. DateTime? deletedDate,
  10. String? description,
  11. String? email,
  12. String? expand,
  13. bool? favourite,
  14. String? id,
  15. ProjectInsight? insight,
  16. bool? isPrivate,
  17. Hierarchy? issueTypeHierarchy,
  18. List<IssueTypeDetails>? issueTypes,
  19. String? key,
  20. ProjectLandingPageInfo? landingPageInfo,
  21. User? lead,
  22. String? name,
  23. ProjectPermissions? permissions,
  24. ProjectCategory? projectCategory,
  25. ProjectProjectTypeKey? projectTypeKey,
  26. Map<String, dynamic>? properties,
  27. DateTime? retentionTillDate,
  28. Map<String, dynamic>? roles,
  29. String? self,
  30. bool? simplified,
  31. ProjectStyle? style,
  32. String? url,
  33. String? uuid,
  34. List<Version>? versions,
})

Implementation

Project copyWith(
    {bool? archived,
    User? archivedBy,
    DateTime? archivedDate,
    ProjectAssigneeType? assigneeType,
    AvatarUrlsBean? avatarUrls,
    List<ProjectComponent>? components,
    bool? deleted,
    User? deletedBy,
    DateTime? deletedDate,
    String? description,
    String? email,
    String? expand,
    bool? favourite,
    String? id,
    ProjectInsight? insight,
    bool? isPrivate,
    Hierarchy? issueTypeHierarchy,
    List<IssueTypeDetails>? issueTypes,
    String? key,
    ProjectLandingPageInfo? landingPageInfo,
    User? lead,
    String? name,
    ProjectPermissions? permissions,
    ProjectCategory? projectCategory,
    ProjectProjectTypeKey? projectTypeKey,
    Map<String, dynamic>? properties,
    DateTime? retentionTillDate,
    Map<String, dynamic>? roles,
    String? self,
    bool? simplified,
    ProjectStyle? style,
    String? url,
    String? uuid,
    List<Version>? versions}) {
  return Project(
    archived: archived ?? this.archived,
    archivedBy: archivedBy ?? this.archivedBy,
    archivedDate: archivedDate ?? this.archivedDate,
    assigneeType: assigneeType ?? this.assigneeType,
    avatarUrls: avatarUrls ?? this.avatarUrls,
    components: components ?? this.components,
    deleted: deleted ?? this.deleted,
    deletedBy: deletedBy ?? this.deletedBy,
    deletedDate: deletedDate ?? this.deletedDate,
    description: description ?? this.description,
    email: email ?? this.email,
    expand: expand ?? this.expand,
    favourite: favourite ?? this.favourite,
    id: id ?? this.id,
    insight: insight ?? this.insight,
    isPrivate: isPrivate ?? this.isPrivate,
    issueTypeHierarchy: issueTypeHierarchy ?? this.issueTypeHierarchy,
    issueTypes: issueTypes ?? this.issueTypes,
    key: key ?? this.key,
    landingPageInfo: landingPageInfo ?? this.landingPageInfo,
    lead: lead ?? this.lead,
    name: name ?? this.name,
    permissions: permissions ?? this.permissions,
    projectCategory: projectCategory ?? this.projectCategory,
    projectTypeKey: projectTypeKey ?? this.projectTypeKey,
    properties: properties ?? this.properties,
    retentionTillDate: retentionTillDate ?? this.retentionTillDate,
    roles: roles ?? this.roles,
    self: self ?? this.self,
    simplified: simplified ?? this.simplified,
    style: style ?? this.style,
    url: url ?? this.url,
    uuid: uuid ?? this.uuid,
    versions: versions ?? this.versions,
  );
}