notifyMessageReceived method Null safety

void notifyMessageReceived(
  1. BaseChannel channel,
  2. BaseMessage message
)

Implementation

void notifyMessageReceived(BaseChannel channel, BaseMessage message) {
  sdk.streamManager.msgReceived
      .add(ChannelMessageResponse(channel, message: message));

  _channelHandlers.values.forEach((element) {
    element.onMessageReceived(channel, message);
  });
}