Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeciach

Dead code detector for Dart and Flutter that finds and removes unused declarations.

pub.devRemove
dart_unused_files

CLI tool to scan Flutter and Dart projects for unused .dart files.

pub.devRemove
ScoresHealth80 (best)61
Maintenance94 (best)72
Quality100100
Popularity45 (best)29
Community69 (best)6
Compatibility8585
UsageDownloads (30 days)2.9k (best)1.2k
Likes37 (best)22
Pub points160 / 160160 / 160
GitHub stars23 (best)5
MaintenanceLatest release0.7.2, 11 days ago (best)1.0.1, 8 weeks ago
Major versions in 12 months00
Contributors6 (best)1
Publisherleancode.coUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationNoNo
Direct dependencies123 (best)
LicenseAPACHE-2.0MIT
Setup effortLowLow
JudgementStrengths
  • Supports automatic removal of found dead code with interactive prompts or force options
  • Understands framework entry points, generated files, and avoids many false positives
  • Integrates into multiple CI formats like GitHub Actions, Azure, and SARIF
  • Accurate detection with built-in default exclusions for generated code.
  • Customizable scan paths, file patterns, and folder exclusions.
Weaknesses
  • Static heuristic-based analysis can still yield false positives requiring manual code review
  • May struggle to detect references used only through dynamic code or complex reflection
  • May require manual review to prevent false positives in highly dynamic codebases.
WarningsNoneNone
ciach vs dart_unused_files: which Flutter package should you use? | pubscout