copyWith method
Implementation
CacheObject copyWith({
String? url,
int? id,
String? relativePath,
DateTime? validTill,
String? eTag,
int? length,
}) {
return CacheObject(
url ?? this.url,
id: id ?? this.id,
key: key,
relativePath: relativePath ?? this.relativePath,
validTill: validTill ?? this.validTill,
eTag: eTag ?? this.eTag,
length: length ?? this.length,
touched: touched,
);
}