mapOr<U> method

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

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

Implementation

@override
U mapOr<U>(U Function(T) op, U opt) => opt;