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});
    LogMessage.d("getProfileLocal Result ", " $profileResponse");
    return profileResponse;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}