Methods
-
flatMap<U>(Result<U, E> transform(T value))
→ Result<U, E>
-
Chains another Result-returning operation (monadic flatMap)
-
fold<R>(R onSuccess(T value), R onError(E error))
→ R
-
Returns
onSuccess if Ok, otherwise onError
-
map<U>(U transform(T value))
→ Result<U, E>
-
Transforms the success value
-
mapError<F>(F transform(E error))
→ Result<T, F>
-
Transforms the error
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
when<R>({required R ok(T value), required R err(E error)})
→ R
-
Pattern matching