copyWith method
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);