sendTextMessage method

  1. @override
Future sendTextMessage(
  1. String message,
  2. String jid,
  3. String replyMessageId
)
override

Implementation

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