copyWith method

CacheSummaryRow copyWith({
  1. int? id,
  2. int? size,
  3. Value<PreciseDateTime?> modified = const Value.absent(),
  4. Value<int?> maxSize = const Value.absent(),
})

Implementation

CacheSummaryRow copyWith({
  int? id,
  int? size,
  Value<PreciseDateTime?> modified = const Value.absent(),
  Value<int?> maxSize = const Value.absent(),
}) => CacheSummaryRow(
  id: id ?? this.id,
  size: size ?? this.size,
  modified: modified.present ? modified.value : this.modified,
  maxSize: maxSize.present ? maxSize.value : this.maxSize,
);