isMemberOfGroup method
Implementation
@override
Future<bool?> isMemberOfGroup(String jid, String? userJid) async {
bool? response;
try {
response = await mirrorFlyMethodChannel.invokeMethod<bool>(
'isMemberOfGroup', {"jid": jid, "userjid": userJid});
debugPrint("isMemberOfGroup Result ==> $response");
return response;
} on PlatformException catch (e) {
debugPrint("Platform Exception ===> $e");
return false;
} on Exception catch (error) {
debugPrint("Exception ==> $error");
return false;
}
}