result_controller 1.0.0 copy "result_controller: ^1.0.0" to clipboard
result_controller: ^1.0.0 copied to clipboard

Functional error handling with Result pattern. Safely manage operations that can fail, with clean, type-safe error control.

Changelog #

[1.0.0] - Initial Release #

Added #

  • Core Result<T, E> implementation
  • Ok and Err classes for result handling
  • ApiResult and ApiResponse for API-specific error management
  • Comprehensive error handling methods
    • when()
    • map()
    • flatMap()
    • mapError()
    • recover()
  • Async error handling methods
    • trySync()
    • tryAsync()
    • trySyncMap()
    • tryAsyncMap()
  • Extension methods for collection operations
  • JSON parsing utilities
  • Detailed error reporting with HttpMessage and ApiErr

Features #

  • Type-safe error handling
  • Functional programming approach
  • Flexible error transformation
  • Support for both synchronous and asynchronous operations
  • Comprehensive API response processing

[0.1.0] - Pre-release Development #

  • Initial project structure
  • Basic implementation of core components
  • Extensive test coverage
2
likes
0
points
245
downloads

Publisher

verified publisherjhonacode.com

Weekly Downloads

Functional error handling with Result pattern. Safely manage operations that can fail, with clean, type-safe error control.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on result_controller