addUsersToGroup method

  1. @override
Future<bool?> addUsersToGroup(
  1. String jid,
  2. List<String> userList
)
override

Implementation

@override
Future<bool?> addUsersToGroup(String jid, List<String> userList) async {
  bool? response;
  try {
    response = await mirrorFlyMethodChannel.invokeMethod<bool>('addUsersToGroup', {"jid": jid, "members": userList});
    LogMessage.d("addUsersToGroup Response ", " $response");
    return response;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}