ifNothing method

  1. @override
Nothing<T> ifNothing(
  1. void callback()
)
override

Calls the callback function if the wrapped value is not present.

Implementation

@override
Nothing<T> ifNothing(void Function() callback) {
  callback();
  return this;
}