removeConnectivityListener static method

bool removeConnectivityListener(
  1. ConnectivityListener? listener
)

Remove a Connectivity listener.

Implementation

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