Result<T, E extends Exception> class
sealed
- Implementers
- Available extensions
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isErr → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unwrap → T
-
Available on Result<
T, Exception> , provided by the ResultMethods extensionno setter
Methods
-
bind<
R> () → R -
match<
R> ({required Option< R> ok(T ok), required Option<R> err(Exception e)}) → Option<R> -
Available on Result<
T, Exception> , provided by the ResultMethods extension -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unwrapOr(
T fallback) → T -
Available on Result<
T, Exception> , provided by the ResultMethods extension -
unwrapOrElse(
Option< T> handleErr(Exception e)) → Option<T> -
Available on Result<
T, Exception> , provided by the ResultMethods extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited