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