copyWith method

DetailedVersion copyWith({
  1. int? number,
  2. String? authorId,
  3. String? message,
  4. DateTime? createdAt,
  5. bool? minorEdit,
  6. bool? contentTypeModified,
  7. List<String>? collaborators,
  8. int? prevVersion,
  9. int? nextVersion,
})

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