unwrapOrElseAsync method

  1. @override
Future<T> unwrapOrElseAsync(
  1. Future<T> op(
    1. E
    )
)
override

Unwraps a result, yielding the content of an Ok. If the value is an Err then it asynchronously calls op with its value.

Implementation

@override
Future<T> unwrapOrElseAsync(Future<T> Function(E) op) => op(_err);