removeMessageListener static method

dynamic removeMessageListener(
  1. String listenerId
)

To remove CometChatCallsEventsListener listener

We recommend you remove the listener once the activity or fragment is not in use. Typically, this can be added in the dispose() method.

Implementation

static removeMessageListener(String listenerId) {
  callsEventsListener.remove(listenerId);
}