inline_result 2.0.0
inline_result: ^2.0.0 copied to clipboard
This package brings a Kotlin-like Result<T> to Dart, using extension types for zero-cost wrapping.
2.0.0 #
- Breaking Changes
- Better async API
- All async methods now handle
FutureOr<T>
instead ofT
Result.runCatching
deprecated
1.2.0 #
- Add
flatMap
onFailure
,recover
andrecoverCatching
now can works with specific type ofException
1.1.0 #
- Extension to works with the Futures
runCatching
as global function- Refactor
Result
type to useconst
andfactory
- Try to make all methods inline
1.0.0 #
- Initial release
- Inline Result class with all base methods