copyWith method

CleanResult copyWith({
  1. List<String>? deletedPaths,
  2. Map<String, String>? failedPaths,
  3. int? reclaimedSize,
})

Creates a copy with updated fields.

Implementation

CleanResult copyWith({
  List<String>? deletedPaths,
  Map<String, String>? failedPaths,
  int? reclaimedSize,
}) {
  return CleanResult(
    deletedPaths: deletedPaths ?? this.deletedPaths,
    failedPaths: failedPaths ?? this.failedPaths,
    reclaimedSize: reclaimedSize ?? this.reclaimedSize,
  );
}