getRecentChatOf method

  1. @override
Future getRecentChatOf(
  1. String jid
)
override

Implementation

@override
Future<dynamic> getRecentChatOf(String jid) async {
  dynamic response;
  try {
    response = await mirrorFlyMethodChannel
        .invokeMethod('getRecentChatOf', {"jid": jid});
    debugPrint("getRecentChatOf response ==> $response");
    return response;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}