copyWith method

ZipFile copyWith({
  1. ZipCompressionMethod? compressionMethod,
  2. BigInt? lastModifiedTime,
  3. Option<int>? permissions,
  4. String? comment,
  5. FileBytes? file,
  6. int? crc32,
  7. BigInt? compressedSize,
  8. Uint8List? extraData,
  9. bool? isDir,
  10. Option<String>? enclosedName,
})

Returns a new instance by overriding the values passed as arguments

Implementation

ZipFile copyWith({
  ZipCompressionMethod? compressionMethod,
  BigInt /*S64*/ ? lastModifiedTime,
  Option<int /*U32*/ >? permissions,
  String? comment,
  FileBytes? file,
  int /*U32*/ ? crc32,
  BigInt /*U64*/ ? compressedSize,
  Uint8List? extraData,
  bool? isDir,
  Option<String>? enclosedName,
}) =>
    ZipFile(
        compressionMethod: compressionMethod ?? this.compressionMethod,
        lastModifiedTime: lastModifiedTime ?? this.lastModifiedTime,
        permissions:
            permissions != null ? permissions.value : this.permissions,
        comment: comment ?? this.comment,
        file: file ?? this.file,
        crc32: crc32 ?? this.crc32,
        compressedSize: compressedSize ?? this.compressedSize,
        extraData: extraData ?? this.extraData,
        isDir: isDir ?? this.isDir,
        enclosedName:
            enclosedName != null ? enclosedName.value : this.enclosedName);