Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeanyhow

Dart implementation of Rust's Result monad type and anyhow crate for error handling.

pub.devRemove
result_dart

Kotlin and Swift inspired Result class for error handling in Dart and Flutter.

pub.devRemove
ScoresHealth4569 (best)
Maintenance325 (best)
Quality96100 (best)
Popularity3077 (best)
Community4174 (best)
Compatibility85100 (best)
UsageDownloads (30 days)72367k (best)
Likes32175 (best)
Pub points150 / 160160 / 160 (best)
GitHub stars2462 (best)
MaintenanceLatest release3.0.1, 2 years ago2.2.0, 9 months ago (best)
Major versions in 12 months00
Contributors17 (best)
Publishervoyver.comflutterando.com.br
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies11
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Enables idiomatic Rust-style error handling in Dart.
  • Allows adding context and chaining errors to trace exact issues.
  • Reduces boilerplate by defaulting failure types to Exception.
  • Includes a wide range of transformation and recovery operators.
  • Supports asynchronous workflows via AsyncResult typedef.
Weaknesses
  • Requires adopting a Result monad paradigm instead of traditional exceptions.
  • Downcasting underlying errors is intended to be used sparingly.
  • Does not provide full functional programming suites like dartz or fpdart.
  • Requires adopting a Result return type convention throughout the codebase.
WarningsNoneNone
anyhow vs result_dart: which Flutter package should you use? | pubscout