dars 0.3.0
dars: ^0.3.0 copied to clipboard
A Dart-idiomatic Result type package with first-class developer experience.
0.2.0 #
Breaking Changes #
- BREAKING:
Resultfactory andResult.asyncnow require callback to returnResult<T, E>instead ofT- Before:
Result(($) { return value; }, ...) - After:
Result(($) { return Ok(value); }, ...) - This allows returning
OkorErrexplicitly from within the callback
- Before:
0.1.0 #
- Initial release with core Result type functionality
Result<T, E>sealed class (Ok,Err)- Early return
$syntax (sync and async) - Nullable extension and Future extensions