result_monad 2.3.2 copy "result_monad: ^2.3.2" to clipboard
result_monad: ^2.3.2 copied to clipboard

A Dart implementation of the Result Monad which allows for more expressive result generation and processing without using exceptions.

2.3.2 #

  • Tweak to documentation headers to avoid lint error

2.3.1 #

  • Tweak to README to include withError and withErrorAsync

2.3.0 #

  • Examples and documentation updates for the new syntax.
  • Add to FutureResult: andThen, errorCast, mapError, mapValue, withResult, withError, match, fold
  • Add withError to Result and withError and withErrorAsync to FutureResult

2.1.0 #

  • Add pass through methods withResult and withResultAsync on Result and Future extension method

2.0.2 #

  • Add exception catching on addThen and addThenSuccess and FutureResult extension methods.

2.0.1 #

  • Tweaks to the README only.

2.0.0 #

  • Allow nullable types for success and failure types
  • Add andThenSuccess and andThenSuccessAsync methods for allowing returning results without explicit Result.ok wrapping to allow more concise syntax
  • Add extension methods on FutureResult to make async chaining syntax much more concise
  • Add errorCast method for when need to pass up an error Result with the same error type with different success type.

1.0.2 #

  • Tweaks to API documentation
  • Added temp file "intermediate" level example and added it to example.md as well

1.0.1 #

  • Added an example.md file for pub.dev.

1.0.0 #

  • Initial version.
5
likes
160
points
2.04k
downloads

Publisher

verified publishermyportal.social

Weekly Downloads

A Dart implementation of the Result Monad which allows for more expressive result generation and processing without using exceptions.

Repository (GitLab)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on result_monad