cancel method

Future<void> cancel()

Implementation

Future<void> cancel() async {
  _active = false;
  await _subscription.cancel();
}