copyWith method
Implementation
DetailedVersion copyWith(
{int? number,
String? authorId,
String? message,
DateTime? createdAt,
bool? minorEdit,
bool? contentTypeModified,
List<String>? collaborators,
int? prevVersion,
int? nextVersion}) {
return DetailedVersion(
number: number ?? this.number,
authorId: authorId ?? this.authorId,
message: message ?? this.message,
createdAt: createdAt ?? this.createdAt,
minorEdit: minorEdit ?? this.minorEdit,
contentTypeModified: contentTypeModified ?? this.contentTypeModified,
collaborators: collaborators ?? this.collaborators,
prevVersion: prevVersion ?? this.prevVersion,
nextVersion: nextVersion ?? this.nextVersion,
);
}