copyWith method

CacheItem copyWith({
  1. String? key,
  2. String? data,
  3. DateTime? createdAt,
  4. DateTime? expiresAt,
  5. int? priority,
  6. int? size,
})

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