mapOrAsync<U> method
Applies an asynchronous function to the contained value (if any), or returns the provided default (if not).
Implementation
Future<U> mapOrAsync<U>(Future<U> Function(T) op, U opt) =>
then((result) => result.mapOrAsync(op, opt));