map<R> abstract method
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);