sendChatMessage method
Sends a chat message via to
one particular participant or to all of them.
If the to
param is empty, the message
will be sent to all the participants in the conference.
In order to get the participantId for the to
parameter, the JitsiMeetEventListener.participantsJoined
event should be listened for, which have as a parameter the participantId and this should be stored somehow.
Implementation
Future<MethodResponse> sendChatMessage(
{String? to, required String message}) async {
return await JitsiMeetPlatform.instance
.sendChatMessage(to: to, message: message);
}