Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebuilt_collection

Immutable collections based on SDK collections with builder pattern.

pub.devRemove
fast_immutable_collections

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

pub.devRemove
ScoresHealth95 (best)91
Maintenance9298 (best)
Quality9393
Popularity95 (best)82
Community100 (best)80
Compatibility100100
UsageDownloads (30 days)14M (best)122k
Likes347412 (best)
Pub points150 / 160150 / 160
GitHub stars871 (best)230
MaintenanceLatest release6.0.0, 4 weeks ago12.0.1, 4 days ago (best)
Major versions in 12 months11
Contributors100+ (best)14
Publisherdart.devglasberg.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies0 (best)2
LicenseBSD-3-CLAUSEBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Enforces immutability and prevents accidental state mutations.
  • Provides deep equality and caching for efficient comparisons and hashing.
  • Uses copy-on-write wrappers to avoid unnecessary data copying.
  • 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.
Weaknesses
  • Collections do not implement core SDK mutable interfaces (e.g., BuiltList does not implement List).
  • Requires converting to/from builders or views when interoperating with standard SDK code.
  • 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.
WarningsNoneNone
built_collection vs fast_immutable_collections: which Flutter package should you use? | pubscout