Channel gets created with only one user

hello all
below is a function that gets called in initState:

load() async {
    try {
      final sendBird = SendbirdSdk(appId: Constants.APP_ID); 
      final _ = await sendBird.connect(widget.userID);
      
      final query = GroupChannelListQuery()
      ..limit=1
      ..userIdsExactlyIn = widget.otherUsers;
      
      List<GroupChannel> channels= await query.loadNext();
      GroupChannel aChannel; 
      var channelUsers=widget.otherUsers+[widget.userID];
      if(channels.length==0){
         aChannel= await **GroupChannel.createChannel(GroupChannelParams()..userIds=channelUsers);**
         print('Channel Created');
      }
      else{
         aChannel = channels[0];
         print('existing channel: '+aChannel.name!);
      }
      

      List<BaseMessage> messages = await aChannel.getMessagesByTimestamp(DateTime.now().millisecondsSinceEpoch*1000,MessageListParams());

      setState(() {
        _messages = messages;
        _channel= aChannel;
      });
      
    } catch (e) {
      print(e);
    }
  }

When I create a channel, I pass it an array of userIds, however it creates a channel with only the logged in user in it
Please let me know what was done wrong and how it can be fixed

Hi @Reda_Makarem,

Welcome to the Sendbird Community. Let me take a look at this and see if I can reproduce this behavior.

Hi @Reda_Makarem,

I was not able to reproduce this using our Flutter Sample, which uses the following function:

Future<GroupChannel> createChannel() async {
    try {
      final userIds = this
          .selections
          .where((selection) => selection.isSelected)
          .map((selection) {
        return selection.user.userId;
      }).toList();
      final params = GroupChannelParams()..userIds = userIds;
      final channel = await GroupChannel.createChannel(params);
      return channel;
    } catch (e) {
      print('create_channel_view: createChannel: ERROR: $e');
      throw e;
    }
  }

Would you be able to inspect the network request in the Flutter Debugger to see what is being sent in the request body? Additionally, can you inspect the value of channelUsers to ensure it contains all of the necessary users?