stop method

void stop()

Stops listening.

Implementation

void stop() {
  _detach?.call();
  _detach = null;
}