mapOrAsync<U> abstract method

Future<U> mapOrAsync<U>(
  1. Future<U> op(
    1. T
    ),
  2. U opt
)

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);