turbo_response 0.2.5 copy "turbo_response: ^0.2.5" to clipboard
turbo_response: ^0.2.5 copied to clipboard

A type-safe response that can be either successful or failed, with proper error handling and pattern matching. Works with both Dart and Flutter projects.

Changelog #

0.2.5 #

  • ✨ New: Added title and message support for empty responses
  • 🔄 Changed: Enhanced empty response handling with more descriptive information

0.2.4 #

  • 🔄 Changed: Moved Flutter to dev_dependencies - now works with pure Dart projects with zero Flutter dependencies
  • 📝 Docs: Enhanced documentation to highlight Dart compatibility
  • 🎨 Platform: Added platform-agnostic support with improved package structure
  • 🔧 Chore: Updated package metadata and topics

0.2.3 #

  • ✨ New: Added static throwFail method for creating and throwing failures in one step

0.2.2 #

  • 🔄 Changed: Renamed throwFail to tryThrowFail for better clarity

0.2.1 #

  • 🔄 Changed: Updated package description to be more concise
  • 📝 Docs: Enhanced documentation with emojis and better formatting

0.2.0 #

  • ✨ New: Added support for async operations in mapSuccess and andThen methods
  • 🔄 Changed: Updated function parameter names to be more descriptive in IDE tooltips
  • 📝 Docs: Improved documentation with better examples and parameter names

0.1.0 #

  • Initial release with core functionality
  • Added support for success and failure states
  • Added pattern matching with when and maybeWhen
  • Added transformation methods like mapSuccess, mapFail, and andThen
  • Added utility methods like unwrap, unwrapOr, and ensure
  • Added static utility methods traverse and sequence
0
likes
0
points
271
downloads

Publisher

verified publisherultrawideturbodev.com

Weekly Downloads

A type-safe response that can be either successful or failed, with proper error handling and pattern matching. Works with both Dart and Flutter projects.

Homepage
Repository (GitHub)
View/report issues

Topics

#error-handling #result #response #type-safe #dart

License

unknown (license)

More

Packages that depend on turbo_response