multiple_result 2.0.0
multiple_result: ^2.0.0 copied to clipboard
Multiple results for dart. Inspired by dartz's Either and Kotlin's sealed classes
[2.0.0] - 12/03/2022 #
- BREAKING: Rename
getSuccess
totryGetSuccess
andgetError
totryGetError
methods. - BREAKING: Flip the order of the Success and Error types. Thanks to JoDeveloper for executing and RalphBergmannKMB for proposing.
- If you
Result<Exception, String>
now you must useResult<String, Exception>
to improve readability.
- If you
- Add
onSuccess
andonError
methods to handle the result only in these cases.
[1.0.4] - 07/19/2021 #
- Adds getSuccess and getError methods
- Adds SuccessResult and success const
[1.0.3] - 05/02/2021 #
- Adds @immutable annotation to Success and Error classes to help in the tests | Thanks to Eronildo!
[1.0.1] - 03/26/2021 #
- Adds documentation
- Changes library to multiple_result
[1.0.0] - 03/23/2021 #
- Initial release