copyWith method

CachedData copyWith({
  1. DateTime? lastUsedAt,
  2. CacheLoc? location,
  3. DateTime? updatedAt,
  4. int? useCount,
  5. Object? value,
})

Implementation

CachedData copyWith({
  DateTime? lastUsedAt,
  CacheLoc? location,
  DateTime? updatedAt,
  int? useCount,
  Object? value,
}) {
  return CachedData(
    lastUsedAt: lastUsedAt ?? this.lastUsedAt,
    location: location ?? this.location,
    updatedAt: updatedAt ?? this.updatedAt,
    useCount: useCount ?? this.useCount,
    value: value ?? this.value,
  );
}