getMembersCountOfGroup method

  1. @override
Future<int?> getMembersCountOfGroup(
  1. String groupJid
)
override

This method is used to get the group members count.

Implementation

@override
Future<int?> getMembersCountOfGroup(String groupJid) async {
  int? res;
  try {
    res = await mirrorFlyMethodChannel
        .invokeMethod<int>('getMembersCountOfGroup', {"groupJid": groupJid});
    return res;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}