flutter_resultable 0.0.2
flutter_resultable: ^0.0.2 copied to clipboard
A lightweight Result type for modeling success/failure in Flutter and Dart using sealed classes.
0.0.2 #
π Improvements #
- π§ Enhanced DartDoc documentation for
Result
and its extensions- Clearer examples and use case descriptions
- Fixed typos and improved structure for readability
- β More consistent formatting across all documentation blocks
- β»οΈ Internally restructured doc comments to follow Dart/Flutter standards
0.0.1 #
π Initial Release #
This is the first release of the package.
β¨ Features #
- β
Result<F, S>
sealed class usingfreezed
Result.failure(F)
andResult.success(S)
- β
fold()
extension for functional handling ofResult
- Simplifies branching logic for success and failure
- β
Utility extensions:
isSuccess
,isFailure
successOrNull
,failureOrNull
getOrElse(fallback)
- π Complete DartDoc documentation and usage examples
- β Designed for use in clean architecture, functional error handling, and repository patterns
π¦ Intended Use Cases #
- Wrapping results of async or fallible operations
- Alternative to
try-catch
for service and repository layers - Clean and testable error handling patterns