safe_result 1.1.2 copy "safe_result: ^1.1.2" to clipboard
safe_result: ^1.1.2 copied to clipboard

A Dart package providing a Result type for handling success and error cases in a type-safe way.

1.1.2 #

  • Fixed fold method to return non-nullable Result<U> with required handlers
  • Added comprehensive test cases for fold method:
    • Success and error transformations
    • Exception handling
    • Type transformations
  • Updated documentation to match new fold method signature

1.1.1 #

  • Added comprehensive test suite for Result type and extensions
  • Added more examples in documentation:
    • Pattern matching with switch expressions
    • Async operation chaining
    • Error handling patterns
    • Nullable Result handling
  • Improved API documentation with detailed usage examples
  • Added example project demonstrating real-world use cases

1.0.0 #

  • Initial version
  • Added Result type with Ok and Error variants
  • Added map, fold, and getOrElse operations
  • Added extension methods for nullable Results
  • Added extension methods for Future
  • Added comprehensive documentation and examples
3
likes
0
points
85
downloads

Publisher

verified publishernolann-dev.xyz

Weekly Downloads

A Dart package providing a Result type for handling success and error cases in a type-safe way.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on safe_result