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