mapAsync method

  1. @override
  2. @visibleForTesting
Sync<T> mapAsync(
  1. @noFutures Async<T> noFutures(
    1. Async<T> async
    )
)
override

Transforms the inner Async instance if this is an Async.

Provided for pair-axis symmetry with Result.mapOk/Result.mapErr — real code almost always wants resultMap, fold, or foldResult instead.

Implementation

@override
@visibleForTesting
@pragma('vm:prefer-inline')
Sync<T> mapAsync(@noFutures Async<T> Function(Async<T> async) noFutures) {
  return this;
}