fluent_result 6.0.0
fluent_result: ^6.0.0 copied to clipboard
FluentResults is a Dart library developed to solve a common problem. It returns an object indicating success or failure of an operation instead of throwing/using exceptions.
6.0.0 #
- [Add]
success
,successWith
,fail
methods - [Add]
trySync
,tryAsync
methods - [Change]
toResult
intomap
5.0.0 #
Breaking changes
ResultError
has not const constructor anymore.
Updates
- Use
withError
andwithErrors
instead offail
andfails
respectively. - [Add] folding onFail and onSuccess with
fold(onFail, onSuccess)
. - [Add] mapping any object to
ResultOf<T>
withtoResult()
. - [Add]
failIf(condition, reason)
andokIf(condition, failReason)
.
4.3.0 #
- [Fix]
contains<T>()
- [Add] getting specific error from collection by
get<T>
4.2.0 #
- [Fix]
contains<T>()
4.1.0 #
- [Add] errors collection
4.0.1 #
- [Migrate] to null-safety
4.0.0 #
- [Update] dependencies for migration to null-safety
3.0.2 #
- Add
withErrorMessage(String)
method toResultOf
- Add
withException(Exception)
method toResultOf
3.0.1 #
- [Add]
withErrorMessage(String)
method toResult
- [Add]
withException(Exception)
method toResult
3.0.0+1 #
Correct README.md
3.0.0 #
- [Add]
ResultError
object that describes a error and allows the errors to be typed.
2.0.0+1 #
Correct README.md
2.0.0 #
- [Add]
ResultOf<T>
for generic Result to hold value of T. - [Remove]
flutter
dependency
1.0.0+1 #
- [Add] correct description
1.0.0 #
Initial Version of the library.
- Includes the ability to create Success and Fail Results
- Includes the ability to create Generic Result with value