cancel method Null safety

Future<void> cancel()

Implementation

Future<void> cancel() async {
  return _subscription?.cancel();
}