unwatch method

Future<void> unwatch(
  1. String id
)

Cancel a specific watch.

Implementation

Future<void> unwatch(String id) async {
  final sub = _subscriptions.remove(id);
  if (sub != null) {
    await sub.cancel();
  }
  _debounceTimers.remove(id)?.cancel();
}