copyWith method

Version copyWith({
  1. User? by,
  2. DateTime? when,
  3. String? friendlyWhen,
  4. String? message,
  5. int? number,
  6. bool? minorEdit,
  7. Content? content,
  8. UsersUserKeys? collaborators,
  9. VersionExpandable? expandable,
  10. GenericLinks? links,
  11. bool? contentTypeModified,
  12. String? confRev,
  13. String? syncRev,
  14. 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,
  );
}