copyWith method
Implementation
CacheItem copyWith({
String? key,
String? data,
DateTime? createdAt,
DateTime? expiresAt,
int? priority,
int? size,
}) => CacheItem(
key: key ?? this.key,
data: data ?? this.data,
createdAt: createdAt ?? this.createdAt,
expiresAt: expiresAt ?? this.expiresAt,
priority: priority ?? this.priority,
size: size ?? this.size,
);