map<R> abstract method

  1. @override
Optional<R> map<R>(
  1. R mapper(
    1. T
    )
)
override

Returns an Optional containing the result of applying the mapper to this Optional's value, if present. Otherwise, returns an empty Optional.

If the mapper returns a null value, returns an empty Optional.

Implementation

@override
Optional<R> map<R>(R Function(T) mapper);