containsSubscription method Null safety

bool containsSubscription(
  1. StreamSubscription subscription
)

Returns a boolean indicating whether an subscription exists or not.

For example:

subxMap.containsSubscription(subscription);

Implementation

bool containsSubscription(StreamSubscription<dynamic> subscription) {
  return _subscriptionMap.containsValue(subscription);
}