addConnectivityListener static method

bool addConnectivityListener(
  1. ConnectivityListener? listener
)

Add a Connectivity listener.

Implementation

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