ifPresent abstract method

Maybe<T> ifPresent(
  1. void consumer(
    1. T value
    )
)

Calls the consumer if the wrapped value is present.

Implementation

Maybe<T> ifPresent(void Function(T value) consumer);