Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributefast_immutable_collections

Fast immutable lists, sets, maps, and multimaps for Dart

pub.devRemove
weak_map

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

pub.devRemove
ScoresHealth91 (best)80
Maintenance98 (best)90
Quality9396 (best)
Popularity82 (best)59
Community80 (best)46
Compatibility100100
UsageDownloads (30 days)122k (best)62k
Likes412 (best)19
Pub points150 / 160150 / 160
GitHub stars230 (best)21
MaintenanceLatest release12.0.1, 4 days ago4.1.3, 4 days ago (best)
Major versions in 12 months10 (best)
Contributors14 (best)2
Publisherglasberg.devglasberg.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies20 (best)
LicenseBSD-2-CLAUSEBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Significantly faster than many traditional immutable collection packages by saving structural differences.
  • No manual mutable/immutable cycles required; easy locking via `.lock` extensions.
  • Supports const instances for IList, ISet, and IMap.
  • Prevents memory leaks by not keeping keys alive
  • Built-in memoization and cache functions for immutable states
  • Pure Dart with zero dependencies
Weaknesses
  • Introduces custom collection types (IList, ISet, IMap) that require learning specific APIs.
  • Changes in internal structure flushing can affect identity comparisons if not configured carefully.
  • No iteration, length, keys, or values methods on WeakMap by design
  • Requires immutable state objects for proper cache invalidation
WarningsNoneNone
fast_immutable_collections vs weak_map: which Flutter package should you use? | pubscout