sendChatToUser method
Call this method to send a chat message to a specific user.
userId
the receiver's userId
message
the message content
Return ZoomVideoSDKError_Success
if the function succeeds. Otherwise, this function returns an error.
Implementation
@override
Future<String> sendChatToUser(String userId, String message) async {
var params = <String, dynamic>{};
params.putIfAbsent("userId", () => userId);
params.putIfAbsent("message", () => message);
return await methodChannel
.invokeMethod<String>('sendChatToUser', params)
.then<String>((String? value) => value ?? "");
}