sendLocationMessage method

  1. @override
Future sendLocationMessage(
  1. String jid,
  2. double latitude,
  3. double longitude,
  4. String replyMessageId,
)
override

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