kickUserFromGroup method

Future kickUserFromGroup({
  1. required String groupId,
  2. required String kickedId,
})

will delete user from group only if this user in the group and current current user is admin admin can delete admin but cant delete the group creator group creator can delete any user but cant be deleted throw exception if current user not admin or if kick the group creator of kick your self be aware ! throw No internet connection

Implementation

Future kickUserFromGroup({
  required String groupId,
  required String kickedId,
}) async {
  return _vChatUsersApi.kickUserFromGroup(
    groupId: groupId,
    kickedId: kickedId,
  );
}