cleanTargets method

Future<CleanupSummary> cleanTargets(
  1. List<CleanupTarget> targets, {
  2. required bool dryRun,
})

Implementation

Future<CleanupSummary> cleanTargets(
  List<CleanupTarget> targets, {
  required bool dryRun,
}) async {
  final results = <CleanupResult>[];
  for (final target in targets) {
    results.add(await _targetCleaner.clean(target, dryRun: dryRun));
  }
  return CleanupSummary(results);
}