copyWith method

AttachmentArchive copyWith({
  1. List<AttachmentArchiveEntry>? entries,
  2. bool? moreAvailable,
  3. int? totalEntryCount,
  4. int? totalNumberOfEntriesAvailable,
})

Implementation

AttachmentArchive copyWith(
    {List<AttachmentArchiveEntry>? entries,
    bool? moreAvailable,
    int? totalEntryCount,
    int? totalNumberOfEntriesAvailable}) {
  return AttachmentArchive(
    entries: entries ?? this.entries,
    moreAvailable: moreAvailable ?? this.moreAvailable,
    totalEntryCount: totalEntryCount ?? this.totalEntryCount,
    totalNumberOfEntriesAvailable:
        totalNumberOfEntriesAvailable ?? this.totalNumberOfEntriesAvailable,
  );
}