stopAll method

Future<void> stopAll()

Stops all active watchers.

Implementation

Future<void> stopAll() async {
  for (final sub in _subscriptions.values) {
    await sub.cancel();
  }
  _subscriptions.clear();
}