copyWith method
Version
copyWith({
- User? by,
- DateTime? when,
- String? friendlyWhen,
- String? message,
- int? number,
- bool? minorEdit,
- Content? content,
- UsersUserKeys? collaborators,
- VersionExpandable? expandable,
- GenericLinks? links,
- bool? contentTypeModified,
- String? confRev,
- String? syncRev,
- String? syncRevSource,
Implementation
Version copyWith(
{User? by,
DateTime? when,
String? friendlyWhen,
String? message,
int? number,
bool? minorEdit,
Content? content,
UsersUserKeys? collaborators,
VersionExpandable? expandable,
GenericLinks? links,
bool? contentTypeModified,
String? confRev,
String? syncRev,
String? syncRevSource}) {
return Version(
by: by ?? this.by,
when: when ?? this.when,
friendlyWhen: friendlyWhen ?? this.friendlyWhen,
message: message ?? this.message,
number: number ?? this.number,
minorEdit: minorEdit ?? this.minorEdit,
content: content ?? this.content,
collaborators: collaborators ?? this.collaborators,
expandable: expandable ?? this.expandable,
links: links ?? this.links,
contentTypeModified: contentTypeModified ?? this.contentTypeModified,
confRev: confRev ?? this.confRev,
syncRev: syncRev ?? this.syncRev,
syncRevSource: syncRevSource ?? this.syncRevSource,
);
}