getJid method
Implementation
@override
Future<String> getJid(String username) async {
//getuserjid
String? userJID;
try {
userJID = await mirrorFlyMethodChannel
.invokeMethod<String?>('get_jid', {"username": username});
debugPrint("User JID Result ==> $userJID");
return userJID ?? '';
} on PlatformException catch (e) {
debugPrint("Flutter Exception ===> $e");
rethrow;
} on Exception catch (error) {
debugPrint("Flutter Exception ==> $error");
rethrow;
}
}