dars 0.3.0 copy "dars: ^0.3.0" to clipboard
dars: ^0.3.0 copied to clipboard

A Dart-idiomatic Result type package with first-class developer experience.

0.3.0 #

Documentation #

  • Updated examples for direct early returns and async chaining

0.2.0 #

Breaking Changes #

  • BREAKING: Result factory and Result.async now require callback to return Result<T, E> instead of T
    • Before: Result(($) { return value; }, ...)
    • After: Result(($) { return Ok(value); }, ...)
    • This allows returning Ok or Err explicitly from within the callback

0.1.0 #

  • Initial release with core Result type functionality
  • Result<T, E> sealed class (Ok, Err)
  • Early return $ syntax (sync and async)
  • Nullable extension and Future extensions
0
likes
160
points
134
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart-idiomatic Result type package with first-class developer experience.

Repository (GitHub)
View/report issues

Topics

#result-type #error-handling #functional-programming

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on dars