unwrapOr method

Future<T> unwrapOr(
  1. T opt
)

Unwraps a result, yielding the content of an Ok. Else, it returns opt.

Implementation

Future<T> unwrapOr(T opt) => then((result) => result.unwrapOr(opt));