removeConnectionListener method Null safety

void removeConnectionListener(
  1. EMConnectionListener listener
)

Removes the chat server connection listener.

Param listener The chat server connection listener to be removed.

Implementation

void removeConnectionListener(EMConnectionListener listener) {
  if (_connectionListeners.contains(listener)) {
    _connectionListeners.remove(listener);
  }
}