copyWith method

Version copyWith({
  1. bool? archived,
  2. String? description,
  3. String? expand,
  4. String? id,
  5. VersionIssuesStatus? issuesStatusForFixVersion,
  6. String? moveUnfixedIssuesTo,
  7. String? name,
  8. List<SimpleLink>? operations,
  9. bool? overdue,
  10. String? project,
  11. int? projectId,
  12. String? releaseDate,
  13. bool? released,
  14. String? self,
  15. String? startDate,
  16. String? userReleaseDate,
  17. String? userStartDate,
})

Implementation

Version copyWith(
    {bool? archived,
    String? description,
    String? expand,
    String? id,
    VersionIssuesStatus? issuesStatusForFixVersion,
    String? moveUnfixedIssuesTo,
    String? name,
    List<SimpleLink>? operations,
    bool? overdue,
    String? project,
    int? projectId,
    String? releaseDate,
    bool? released,
    String? self,
    String? startDate,
    String? userReleaseDate,
    String? userStartDate}) {
  return Version(
    archived: archived ?? this.archived,
    description: description ?? this.description,
    expand: expand ?? this.expand,
    id: id ?? this.id,
    issuesStatusForFixVersion:
        issuesStatusForFixVersion ?? this.issuesStatusForFixVersion,
    moveUnfixedIssuesTo: moveUnfixedIssuesTo ?? this.moveUnfixedIssuesTo,
    name: name ?? this.name,
    operations: operations ?? this.operations,
    overdue: overdue ?? this.overdue,
    project: project ?? this.project,
    projectId: projectId ?? this.projectId,
    releaseDate: releaseDate ?? this.releaseDate,
    released: released ?? this.released,
    self: self ?? this.self,
    startDate: startDate ?? this.startDate,
    userReleaseDate: userReleaseDate ?? this.userReleaseDate,
    userStartDate: userStartDate ?? this.userStartDate,
  );
}