ifPresent method

  1. @override
void ifPresent(
  1. Callback1<T> function
)
override

Evaluates the callback function with the present value, otherwise does nothing.

Implementation

@override
void ifPresent(Callback1<T> function) => function(value);