Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributestack

A Dart package providing a stack data structure with push, pop, size, length, and top functionalities.

pub.devRemove
tuple

Provides immutable tuple classes for grouping values.

pub.devRemove
ScoresHealth5050
Maintenance127 (best)
Quality100 (best)76
Popularity6193 (best)
Community2380 (best)
Compatibility100100
UsageDownloads (30 days)23k1.5M (best)
Likes38484 (best)
Pub points160 / 160 (best)140 / 160
GitHub stars18194 (best)
MaintenanceLatest release0.2.2, 3 years ago (best)2.0.2, 3 years ago
Major versions in 12 months00
Contributors49 (best)
PublisherUnverifiedgoogle.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseMITBSD-2-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Provides clear stack methods like push, pop, top, and size.
  • Supports null safety and works across multiple platforms including Android, iOS, web, and desktop.
  • Includes a Sized constructor to control stack size constraints.
  • Type-safe grouping of values
  • Immutability and hashability
  • No external dependencies
Weaknesses
  • Limited in scope, handling only basic stack data structure features.
  • Throws an IllegalOperationException if top() or pop() is used on an empty stack.
  • Feature complete but not actively enhanced
  • Limited to seven items
  • Superseded by Dart records in newer versions
WarningsNoneNone
stack vs tuple: which Flutter package should you use? | pubscout