sendTextMessage method

  1. @override
Future sendTextMessage(
  1. String message,
  2. String jid,
  3. String replyMessageId, {
  4. String? topicId,
})
override

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;
  }
}