Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributemap_history

A Map implementation with history and rollback support for entries, keys and values.

pub.devRemove
weak_map

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

pub.devRemove
ScoresHealth6380 (best)
Maintenance7690 (best)
Quality100 (best)96
Popularity2259 (best)
Community646 (best)
Compatibility100100
UsageDownloads (30 days)4.9k62k (best)
Likes419 (best)
Pub points160 / 160 (best)150 / 160
GitHub stars621 (best)
MaintenanceLatest release1.0.7, 7 weeks ago4.1.3, 4 days ago (best)
Major versions in 12 months00
Contributors12 (best)
PublisherUnverifiedglasberg.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies10 (best)
LicenseBSD-3-CLAUSEBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Built-in versioning and rollback functionality.
  • Optimized consolidation with performance improvements for changed keys.
  • Compatible with all standard Dart platforms.
  • Prevents memory leaks by not keeping keys alive
  • Built-in memoization and cache functions for immutable states
  • Pure Dart with zero dependencies
Weaknesses
  • Adds memory and performance overhead compared to a standard Map due to history tracking.
  • Limited to map data structures.
  • No iteration, length, keys, or values methods on WeakMap by design
  • Requires immutable state objects for proper cache invalidation
WarningsNoneNone
map_history vs weak_map: which Flutter package should you use? | pubscout