catch_and_flow 0.1.0 copy "catch_and_flow: ^0.1.0" to clipboard
catch_and_flow: ^0.1.0 copied to clipboard

A Flutter package for simplified and type-safe error handling in synchronous and asynchronous operations with a functional programming approach.

0.1.0 - 2025-06-21 #

Added #

  • Initial release of the catch_and_flow package
  • Core CustomError class with GenericError and ErrorFromException implementations
  • Result type for functional error handling with success/error pattern
  • Safety handlers for different operation types:
    • runSafetyFuture and runSafetyFutureNullable for async operations
    • runSafetyStream and runSafetyStreamNullable for reactive streams
    • runSafetySync and runSafetySyncNullable for synchronous operations
  • Extension methods:
    • Future.when() for callback-based future handling
    • Stream.when() for simplified stream subscription with callbacks
    • Result.when() for functional pattern matching
  • Configurable logging system with:
    • Multiple log levels (debug, info, warning, error)
    • Custom logger interface
    • Helper functions for logging
  • Complete API documentation with examples
0
likes
140
points
18
downloads

Publisher

verified publishercamillobucciarelli.dev

Weekly Downloads

A Flutter package for simplified and type-safe error handling in synchronous and asynchronous operations with a functional programming approach.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

equatable, flutter

More

Packages that depend on catch_and_flow