sendTextMessage method
Implementation
@override
Future<dynamic> sendTextMessage(String message, String jid, String replyMessageId, {String? topicId}) async {
dynamic messageResp;
try {
messageResp = await mirrorFlyMethodChannel
.invokeMethod('send_text_msg', {"message": message, "JID": jid, "replyMessageId": replyMessageId, "topicId": topicId});
LogMessage.d("Text Message Result ", " $messageResp");
return messageResp;
} on PlatformException catch (e) {
LogMessage.d("Flutter Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Flutter Exception ", " $error");
rethrow;
}
}