mapOr<U> method

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

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

Implementation

Future<U> mapOr<U>(U Function(T) op, U opt) => mapOrAsync(op, opt);