copyWith method

CacheEntry copyWith({
  1. Map<String, dynamic>? data,
  2. DateTime? timestamp,
  3. Duration? ttl,
})

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