whenAsync<R> abstract method
Asynchronously invokes either ok
or err
depending on the result.
Identical to match except that the arguments are named.
Implementation
Future<R> whenAsync<R>({
required Future<R> Function(T) ok,
required Future<R> Function(E) err,
});