mapOrAsync<U> method

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

Applies an asynchronous function to the contained value (if any), or returns the provided default (if not).

Implementation

@override
Future<U> mapOrAsync<U>(Future<U> Function(T) op, U opt) => Future.value(opt);