removeMessageListener static method

dynamic removeMessageListener(
  1. String listenerId
)

To remove message 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) {
  _messageListeners.remove(listenerId);
}