ifNothing method

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

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

Implementation

@override
Maybe<T> ifNothing(void Function() callback) => this;