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