Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributesortedmap

A map of objects which can be sorted and filtered on both their key and value.

pub.devRemove
weak_map

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

pub.devRemove
ScoresHealth82 (best)80
Maintenance92 (best)90
Quality100 (best)96
Popularity64 (best)59
Community4146 (best)
Compatibility100100
UsageDownloads (30 days)30k62k (best)
Likes43 (best)19
Pub points160 / 160 (best)150 / 160
GitHub stars721 (best)
MaintenanceLatest release0.5.5+1, 10 days ago4.1.3, 4 days ago (best)
Major versions in 12 months00
Contributors12 (best)
Publisherappsup.beglasberg.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseBSD-3-CLAUSEBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Sorts on both keys and values
  • Supports filtering and size limits via FilteredMap
  • No external dependencies
  • Prevents memory leaks by not keeping keys alive
  • Built-in memoization and cache functions for immutable states
  • Pure Dart with zero dependencies
Weaknesses
  • Limited documentation outside of basic examples
  • No iteration, length, keys, or values methods on WeakMap by design
  • Requires immutable state objects for proper cache invalidation
WarningsNoneNone
sortedmap vs weak_map: which Flutter package should you use? | pubscout