cancel method
Cancels the stream subscription.
Implementation
Future<void> cancel() async {
await _subscription?.cancel();
_subscription = null;
}
Cancels the stream subscription.
Future<void> cancel() async {
await _subscription?.cancel();
_subscription = null;
}