Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedispose_scope

Utility to group and automatically dispose/cancel/close resources in Dart.

pub.devRemove
disposebag

Utility to collect and dispose StreamSubscriptions and Sinks in Dart/Flutter.

pub.devRemove
ScoresHealth5050
Maintenance140 (best)
Quality100 (best)96
Popularity68 (best)47
Community58 (best)11
Compatibility85100 (best)
UsageDownloads (30 days)824k (best)10k
Likes1721 (best)
Pub points160 / 160 (best)150 / 160
GitHub stars312 (best)
MaintenanceLatest release2.1.0, 3 years ago (best)1.5.1, 4 years ago
Major versions in 12 months00
Contributors4 (best)2
Publisherodrowaz.devUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies1 (best)2
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Zero external dependencies besides meta.
  • Works with pure Dart, no Flutter required.
  • Provides safety checks and a run‑once dispose guard.
  • Very small and easy to understand
  • Null‑safe and works on all platforms
  • Extension methods make usage concise
Weaknesses
  • Limited to objects with a dispose/close/cancel method; no automatic detection for custom resources.
  • No code‑gen support; manual registration required.
  • Only handles streams and sinks, no broader resource management
  • No built‑in logging configuration beyond a static logger
WarningsNoneNone
dispose_scope vs disposebag: which Flutter package should you use? | pubscout