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

A type-safe response wrapper for handling success and failure states with pattern matching and utility methods.

Changelog #

0.2.6 #

  • πŸ”„ Changed: Renamed internal classes for better code organization
  • πŸ”„ Changed: Updated method names for better clarity and consistency
  • πŸ“ Docs: Enhanced documentation with clearer descriptions

0.2.5 #

  • ✨ New: Added title and message support for empty responses
  • πŸ”„ Changed: Enhanced empty response handling with more descriptive information
  • πŸ”„ Changed: Renamed internal classes for better code organization
  • πŸ”„ Changed: Updated method names for better clarity and consistency

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 throwWhenFail 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
150
points
114
downloads

Publisher

verified publisherultrawideturbodev.com

Weekly Downloads

A type-safe response wrapper for handling success and failure states with pattern matching and utility methods.

Homepage
Repository (GitHub)
View/report issues

Topics

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

Documentation

API reference

License

MIT (license)

More

Packages that depend on turbo_response