isMemberOfGroup method

  1. @override
Future<bool?> isMemberOfGroup(
  1. String jid,
  2. String? userJid
)
override

This method is used to check the member is in a group.

Implementation

@override
Future<bool?> isMemberOfGroup(String jid, String? userJid) async {
  bool? response;
  try {
    response = await mirrorFlyMethodChannel.invokeMethod<bool>(
        'isMemberOfGroup', {"jid": jid, "userjid": userJid});
    LogMessage.d("isMemberOfGroup 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;
  }
}