Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecached_value

A simple way to cache values that result from expensive operations.

pub.devRemove
memoized

Cache function results with optional LRU and expiry support

pub.devRemove
ScoresHealth50 (best)45
Maintenance45 (best)1
Quality100100
Popularity52 (best)19
Community4141
Compatibility100100
UsageDownloads (30 days)14k (best)877
Likes25 (best)13
Pub points160 / 160160 / 160
GitHub stars31 (best)1
MaintenanceLatest release1.0.0, 2 years ago (best)2.2.6, 3 years ago
Major versions in 12 months00
Contributors11
Publisherblue-fire.xyzsylfree.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies21 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Simple and lightweight API for memory caching
  • Supports declarative dependency tracking and TTL out of the box
  • Useful for performance optimization in render objects and paint routines
  • Simple API, no code generation
  • Supports LRU cache and manual expiry
  • Works across all Dart platforms
  • No external build_runner or permissions needed
Weaknesses
  • Memory-only cache with no built-in disk persistence
  • Dependency callbacks are executed on every value access
  • Not thread-safe
  • Requires careful instance management to avoid cache loss
  • No automatic cache invalidation for changing dependencies
WarningsNoneNone
cached_value vs memoized: which Flutter package should you use? | pubscout