Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedart_either

Either monad for Dart and Flutter supporting type-safe error handling and railway-oriented programming.

pub.devRemove
pure

Functional programming essentials for Dart with composition, memoization, and trampolines.

pub.devRemove
ScoresHealth81 (best)56
Maintenance89 (best)27
Quality100 (best)97
Popularity58 (best)32
Community52 (best)46
Compatibility100100
UsageDownloads (30 days)36k (best)3.6k
Likes23 (best)14
Pub points160 / 160160 / 160
GitHub stars917 (best)
MaintenanceLatest release2.5.0, 6 weeks ago (best)1.0.0, 8 months ago
Major versions in 12 months0 (best)1
Contributors3 (best)2
Publisherhoc081098.devyakov.codes
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies21 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Lightweight and focused specifically on the Either monad without importing an entire FP library.
  • Fully documented with tests, sync/async monad comprehensions, and selective error capture.
  • Provides tail call optimization and stack-safe recursion.
  • Supports up to 9 arguments for extensions like composition and currying.
  • Includes both strong and weak memoization capabilities.
Weaknesses
  • Adds an alternative error-handling paradigm that other developers on the team may need to learn.
  • Can make code harder to read for developers unfamiliar with functional programming idioms.
  • Using memoization on impure functions leads to unexpected behavior.
WarningsNoneNone
dart_either vs pure: which Flutter package should you use? | pubscout