removeReceiveMessageListener method Null safety

dynamic removeReceiveMessageListener(
  1. JMMessageEventListener callback
)

Implementation

removeReceiveMessageListener(JMMessageEventListener callback) {
  _eventHanders.receiveMessage.removeWhere((cb) => cb == callback);
}