inline_result 2.0.0 copy "inline_result: ^2.0.0" to clipboard
inline_result: ^2.0.0 copied to clipboard

This package brings a Kotlin-like Result<T> to Dart, using extension types for zero-cost wrapping.

2.0.0 #

  • Breaking Changes
    • Better async API
    • All async methods now handle FutureOr<T> instead of T
  • Result.runCatching deprecated

1.2.0 #

  • Add flatMap
  • onFailure, recover and recoverCatching now can works with specific type of Exception

1.1.0 #

  • Extension to works with the Futures
  • runCatching as global function
  • Refactor Result type to use const and factory
  • Try to make all methods inline

1.0.0 #

  • Initial release
  • Inline Result class with all base methods
4
likes
160
points
42
downloads

Publisher

unverified uploader

Weekly Downloads

This package brings a Kotlin-like Result<T> to Dart, using extension types for zero-cost wrapping.

Repository (GitHub)
View/report issues

Topics

#result #inline #either #errors

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

meta

More

Packages that depend on inline_result