map<R extends Object> method
Transforms the contained value using the mapper function
noFuturesAllowed
while preserving the Monad's structure.
Implementation
@override
@pragma('vm:prefer-inline')
Async<R> map<R extends Object>(
@noFuturesAllowed R Function(T value) noFuturesAllowed,
) {
return Async.unsafe(value.then((e) => e.map(noFuturesAllowed)));
}