unwrapOr method
Unwraps a result, yielding the content of an Ok
. Else, it returns opt
.
Implementation
Future<T> unwrapOr(T opt) => then((result) => result.unwrapOr(opt));
Unwraps a result, yielding the content of an Ok
. Else, it returns opt
.
Future<T> unwrapOr(T opt) => then((result) => result.unwrapOr(opt));