sendLocationMessage method
Implementation
@override
Future<dynamic> sendLocationMessage(String jid, double latitude,
double longitude, String replyMessageId) async {
//sentLocationMessage
dynamic messageResp;
try {
messageResp =
await mirrorFlyMethodChannel.invokeMethod('sendLocationMessage', {
"jid": jid,
"latitude": latitude,
"longitude": longitude,
"replyMessageId": replyMessageId
});
debugPrint("Location Message Result ==> $messageResp");
return messageResp;
} on PlatformException catch (e) {
debugPrint("Flutter Exception ===> $e");
rethrow;
} on Exception catch (error) {
debugPrint("Flutter Exception ==> $error");
rethrow;
}
}