sendLocationMessage method

  1. @override
Future sendLocationMessage(
  1. String jid,
  2. double latitude,
  3. double longitude,
  4. String replyMessageId, {
  5. String? topicId,
})
override

Implementation

@override
Future<dynamic> sendLocationMessage(String jid, double latitude, double longitude, String replyMessageId, {String? topicId}) async {
  //sentLocationMessage
  dynamic messageResp;
  try {
    messageResp = await mirrorFlyMethodChannel.invokeMethod(
        'sendLocationMessage', {"jid": jid, "latitude": latitude, "longitude": longitude, "replyMessageId": replyMessageId, "topicId": topicId});
    LogMessage.d("Location 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;
  }
}