cancel method

Future<void> cancel()

Stop receiving events and notifying listeners.

Implementation

Future<void> cancel() async {
  await _subs!.cancel();
}