copyWith method
ContentHistory
copyWith({
- bool? latest,
- User? createdBy,
- User? ownedBy,
- User? lastOwnedBy,
- DateTime? createdDate,
- Version? lastUpdated,
- Version? previousVersion,
- ContentHistoryContributors? contributors,
- Version? nextVersion,
- ContentHistoryExpandable? expandable,
- GenericLinks? links,
Implementation
ContentHistory copyWith(
{bool? latest,
User? createdBy,
User? ownedBy,
User? lastOwnedBy,
DateTime? createdDate,
Version? lastUpdated,
Version? previousVersion,
ContentHistoryContributors? contributors,
Version? nextVersion,
ContentHistoryExpandable? expandable,
GenericLinks? links}) {
return ContentHistory(
latest: latest ?? this.latest,
createdBy: createdBy ?? this.createdBy,
ownedBy: ownedBy ?? this.ownedBy,
lastOwnedBy: lastOwnedBy ?? this.lastOwnedBy,
createdDate: createdDate ?? this.createdDate,
lastUpdated: lastUpdated ?? this.lastUpdated,
previousVersion: previousVersion ?? this.previousVersion,
contributors: contributors ?? this.contributors,
nextVersion: nextVersion ?? this.nextVersion,
expandable: expandable ?? this.expandable,
links: links ?? this.links,
);
}