getProfileLocal method

  1. @override
Future getProfileLocal(
  1. String jid,
  2. bool server
)
override

Implementation

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