copyWith method

CacheObject copyWith({
  1. String? url,
  2. int? id,
  3. String? relativePath,
  4. DateTime? validTill,
  5. String? eTag,
  6. int? length,
})

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,
  );
}