Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributetuple

Provides immutable tuple classes for grouping values.

pub.devRemove
weak_map

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

pub.devRemove
ScoresHealth5080 (best)
Maintenance2790 (best)
Quality7696 (best)
Popularity93 (best)59
Community80 (best)46
Compatibility100100
UsageDownloads (30 days)1.5M (best)62k
Likes484 (best)19
Pub points140 / 160150 / 160 (best)
GitHub stars194 (best)21
MaintenanceLatest release2.0.2, 3 years ago4.1.3, 3 days ago (best)
Major versions in 12 months00
Contributors9 (best)2
Publishergoogle.devglasberg.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseBSD-2-CLAUSEBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Type-safe grouping of values
  • Immutability and hashability
  • 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
  • Feature complete but not actively enhanced
  • Limited to seven items
  • Superseded by Dart records in newer versions
  • No iteration, length, keys, or values methods on WeakMap by design
  • Requires immutable state objects for proper cache invalidation
WarningsNoneNone
tuple vs weak_map: which Flutter package should you use? | pubscout