Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecv

Helpers to convert Dart objects to/from Map and JSON without code generation.

pub.devRemove
weak_map

A map whose keys are weakly held, and cache functions for memoization.

pub.devRemove
ScoresHealth7980 (best)
Maintenance96 (best)90
Quality100 (best)96
Popularity4359 (best)
Community4646
Compatibility100100
UsageDownloads (30 days)6.6k62k (best)
Likes20 (best)19
Pub points160 / 160 (best)150 / 160
GitHub stars721 (best)
MaintenanceLatest release1.1.15, 12 days ago4.1.3, 4 days ago (best)
Major versions in 12 months00
Contributors22
Publishertekartik.comglasberg.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies40 (best)
LicenseBSD-2-CLAUSEBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • No code generation required
  • Easy to register and use models
  • Handles null/unset values and type conversions
  • Supports nested models and collections
  • Prevents memory leaks by not keeping keys alive
  • Built-in memoization and cache functions for immutable states
  • Pure Dart with zero dependencies
Weaknesses
  • Requires manual constructor registration
  • Models are mutable, which may not fit all architectures
  • No built‑in immutability or validation
  • No iteration, length, keys, or values methods on WeakMap by design
  • Requires immutable state objects for proper cache invalidation
WarningsNoneNone
cv vs weak_map: which Flutter package should you use? | pubscout