getJid method

  1. @override
Future<String> getJid(
  1. String username
)
override

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