copyWith method

AttachmentArchiveEntry copyWith({
  1. String? abbreviatedName,
  2. int? entryIndex,
  3. String? mediaType,
  4. String? name,
  5. int? size,
})

Implementation

AttachmentArchiveEntry copyWith(
    {String? abbreviatedName,
    int? entryIndex,
    String? mediaType,
    String? name,
    int? size}) {
  return AttachmentArchiveEntry(
    abbreviatedName: abbreviatedName ?? this.abbreviatedName,
    entryIndex: entryIndex ?? this.entryIndex,
    mediaType: mediaType ?? this.mediaType,
    name: name ?? this.name,
    size: size ?? this.size,
  );
}