ifPresent method

void ifPresent (void ifPresent(T value))

Executes a function if the Optional value is present.

Implementation

void ifPresent(void ifPresent(T value)) {
  if (isPresent) {
    ifPresent(_value);
  }
}