addConnectivityListener static method
Add a Connectivity listener.
Implementation
static bool addConnectivityListener(ConnectivityListener? listener) {
var add = false;
if (listener != null) {
add = _listeners.add(listener);
}
return add;
}