copyWith method
Creates a copy of this entry with updated fields.
Implementation
CacheEntry copyWith({
Map<String, dynamic>? data,
DateTime? timestamp,
Duration? ttl,
}) => CacheEntry(
data: data ?? this.data,
timestamp: timestamp ?? this.timestamp,
ttl: ttl ?? this.ttl,
);