unwrapOrElse method
Unwraps a result, yielding the content of an Ok
. If the value is an
Err
then it calls op
with its value.
Implementation
Future<T> unwrapOrElse(T Function(E) op) =>
then((result) => result.unwrapOrElse(op));
Unwraps a result, yielding the content of an Ok
. If the value is an
Err
then it calls op
with its value.
Future<T> unwrapOrElse(T Function(E) op) =>
then((result) => result.unwrapOrElse(op));