cancelSubscription method
Cancels events subscription.
Implementation
Future<void> cancelSubscription(StreamSubscription? subscription) async {
await subscription?.cancel();
_subscriptions.remove(subscription);
}
Cancels events subscription.
Future<void> cancelSubscription(StreamSubscription? subscription) async {
await subscription?.cancel();
_subscriptions.remove(subscription);
}