ifPresent method

  1. @override
Nothing<T> ifPresent(
  1. void consumer(
    1. T value
    )
)
override

Calls the consumer if the wrapped value is present.

Implementation

@override
Nothing<T> ifPresent(void Function(T value) consumer) => this;