Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecached_annotation

Provides annotations for the Cached code‑generator to define caching behavior.

pub.devRemove
freezed

Code generation for immutable classes, tagged unions, and cloning without boilerplate.

pub.devRemove
ScoresHealth5596 (best)
Maintenance1692 (best)
Quality76100 (best)
Popularity4293 (best)
Community80100 (best)
Compatibility100100
UsageDownloads (30 days)5.4k3.1M (best)
Likes234.5k (best)
Pub points140 / 160160 / 160 (best)
GitHub stars602.2k (best)
MaintenanceLatest release1.8.1, a year ago4.0.3, 5 weeks ago (best)
Major versions in 12 months00
Contributors16100+ (best)
Publisheriteo.comdash-overflow.net
FitPlatformsAll (pure Dart)Android, iOS, Windows, macOS, Linux
WASM-readyYesNo
KindPure DartFlutter widgets
Code generationNoYes
Direct dependencies1 (best)11
LicenseMITMIT
Setup effortLowMedium
JudgementStrengths
  • Lightweight annotation‑only library
  • Rich set of cache‑related annotations (persistent, lazy, update, delete, etc.)
  • Works seamlessly with the cached code‑generator
  • Significantly reduces boilerplate code for data models.
  • Supports union types, deep cloning, default values, and asserts.
  • Integrates seamlessly with json_serializable for de/serialization.
Weaknesses
  • Useless without the cached package
  • No runtime functionality on its own
  • Limited to annotation use‑cases
  • Requires running a code generator (build_runner) during development.
  • Can introduce steep debugging curves when generated files go out of sync.
WarningsNoneNone
cached_annotation vs freezed: which Flutter package should you use? | pubscout