debugNetworkSubscriptionActive top-level property

bool get debugNetworkSubscriptionActive

仅供测试:进程级 connectivity_plus 订阅是否仍然存活。

这里读取 _networkSubscription/_lifecycleObserver 既是为了保留引用, 也是为了断言「销毁引擎不会取消进程级订阅」。

Implementation

bool get debugNetworkSubscriptionActive =>
    _RuntimePlatformMonitor._shared._networkSubscription != null;