flutter_resultable 0.0.2 copy "flutter_resultable: ^0.0.2" to clipboard
flutter_resultable: ^0.0.2 copied to clipboard

A lightweight Result type for modeling success/failure in Flutter and Dart using sealed classes.

0.0.2 #

πŸ›  Improvements #

  • 🧠 Enhanced DartDoc documentation for Result and its extensions
    • Clearer examples and use case descriptions
    • Fixed typos and improved structure for readability
  • βœ… More consistent formatting across all documentation blocks
  • ♻️ Internally restructured doc comments to follow Dart/Flutter standards

0.0.1 #

πŸš€ Initial Release #

This is the first release of the package.

✨ Features #

  • βœ… Result<F, S> sealed class using freezed
    • Result.failure(F) and Result.success(S)
  • βœ… fold() extension for functional handling of Result
    • Simplifies branching logic for success and failure
  • βœ… Utility extensions:
    • isSuccess, isFailure
    • successOrNull, failureOrNull
    • getOrElse(fallback)
  • πŸ“š Complete DartDoc documentation and usage examples
  • βœ… Designed for use in clean architecture, functional error handling, and repository patterns

πŸ“¦ Intended Use Cases #

  • Wrapping results of async or fallible operations
  • Alternative to try-catch for service and repository layers
  • Clean and testable error handling patterns
3
likes
140
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Result type for modeling success/failure in Flutter and Dart using sealed classes.

Repository (GitHub)
View/report issues

Topics

#result #either #functional #error-handling #flutter

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

freezed_annotation

More

Packages that depend on flutter_resultable