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