onPeerMessageReceived property

void Function(ZIM zim, List<ZIMMessage> messageList, ZIMMessageReceivedInfo info, String fromUserID)? onPeerMessageReceived
getter/setter pair

The callback for receiving peer-to-peer message.

When receiving peer-to-peer message from other user, you will receive this callback.

zim ZIM instance. messageList List of received messages. info Receive information about the message event. fromUserID The user ID of the message sender.

Implementation

static void Function(ZIM zim, List<ZIMMessage> messageList,
    ZIMMessageReceivedInfo info, String fromUserID)? onPeerMessageReceived;