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
result_type

A Result type representing success or failure in Dart

pub.devRemove
ScoresHealth5050
Maintenance45 (best)1
Quality100 (best)96
Popularity52 (best)47
Community4141
Compatibility100100
UsageDownloads (30 days)14k (best)5.1k
Likes2535 (best)
Pub points160 / 160 (best)150 / 160
GitHub stars31 (best)12
MaintenanceLatest release1.0.0, 2 years ago (best)1.0.0, 3 years ago
Major versions in 12 months00
Contributors11
Publisherblue-fire.xyzminikin.me
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
  • Type-safe success/failure representation
  • Easy chaining with map/flatMap
  • Convenient unwrapOr and unwrapOrElse helpers
Weaknesses
  • Memory-only cache with no built-in disk persistence
  • Dependency callbacks are executed on every value access
  • No built-in async/await integration beyond Result type
  • Limited to single value, not collections or streams
WarningsNoneNone
cached_value vs result_type: which Flutter package should you use? | pubscout