turbo_response 0.2.6
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
tothrowWhenFail
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
andandThen
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
andmaybeWhen
- Added transformation methods like
mapSuccess
,mapFail
, andandThen
- Added utility methods like
unwrap
,unwrapOr
, andensure
- Added static utility methods
traverse
andsequence