cancel method

Future<void> cancel()

Implementation

Future<void> cancel() async {
  if (_stream != null) {
    await _stream!.cancel();
  }
}