subscription property
Stream subscription for connectivity changes.
Holds the subscription to the connectivity stream when checkInternetConnectivity is enabled. Automatically cancelled in dispose to prevent memory leaks.
Implementation
StreamSubscription<List<ConnectivityResult>>? subscription;