isAdmin method
This method is used to check if the user is admin in a group.
Implementation
@override
Future<bool?> isAdmin(String userJid, String groupJID) async {
bool? response;
try {
response = await mirrorFlyMethodChannel.invokeMethod<bool>(
'isAdmin', {"jid": userJid, "group_jid": groupJID});
LogMessage.d("isAdmin Result ", " $response");
return response;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
return false;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
return false;
}
}