getSingletonSubscription method

StreamSubscription<T?>? getSingletonSubscription(
  1. Object singletonIdentifier, [
  2. bool singletonIdentifyByInstance = true
])

Returns a StreamSubscription associated with singletonIdentifier.

Implementation

StreamSubscription<T?>? getSingletonSubscription(Object singletonIdentifier,
    [bool singletonIdentifyByInstance = true]) {
  var signature =
      _getListenSignature(singletonIdentifier, singletonIdentifyByInstance);
  return signature?.subscription as StreamSubscription<T?>?;
}