pure_result 0.1.1 copy "pure_result: ^0.1.1" to clipboard
pure_result: ^0.1.1 copied to clipboard

A sealed Result<T, E> package for Dart and Flutter to model success and failure explicitly in app, package, and async domain error handling.

0.1.1 #

  • Improved public API documentation across Result, async extensions, and try helpers.
  • Enabled public_member_api_docs lint to keep API docs coverage enforced.
  • Expanded package description in pubspec.yaml for clearer pub.dev metadata.

0.1.0 #

  • Initial release of sealed Result<T, E>.
  • Added Success/Failure variants and factory constructors.
  • Added core functional operators: fold, map, flatMap, mapError, flatMapError, recover.
  • Added extraction helpers: getOrThrow, getOrElse, nullable accessors.
  • Added exception capture helpers: tryRun, tryRunSync, tryMap, tryMapSync, tryRecover, tryRecoverSync.
  • Added AsyncResultOps extension for chaining on Future<Result<...>>: map, flatMap, mapError, flatMapError, recover.
  • Slimmed modules: package:pure_result/pure_result.dart exports core Result + try_* helpers, while package:pure_result/async_result.dart remains an optional import for AsyncResultOps.
1
likes
0
points
190
downloads

Publisher

verified publisheropenmindopen.world

Weekly Downloads

A sealed Result<T, E> package for Dart and Flutter to model success and failure explicitly in app, package, and async domain error handling.

Repository (GitHub)
View/report issues

Topics

#result #functional #error-handling

License

unknown (license)

More

Packages that depend on pure_result