result_in_dart library
Dart implementation of Rust's Result type.
Result<T, E> is the type used for returning and propagating
errors. It is a class with the two variants, Ok(T) and Err(E).
where T
is the type of a successful value and E
is the type of an error.
Loosely based on https://doc.rust-lang.org/src/core/result.rs.html source code.
Classes
Extensions
-
FlattenResult
on Result<
Result< T, E> , E>
Exceptions / Errors
- ResultUnwrapError
-
Error thrown by the runtime system when
unwrap
fails.