stop method

Future<void> stop()

Cancels the watcher and releases resources.

Implementation

Future<void> stop() async {
  _debounceTimer?.cancel();
  await _sub?.cancel();
  _sub = null;
  _watcher = null;
  await _controller.close();
}