unwrapOrElse method

Future<T> unwrapOrElse(
  1. T op(
    1. E
    )
)

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));