addChannels method

Future<ChannelGroupChangeChannelsResult> addChannels(
  1. String group,
  2. Set<String> channels, {
  3. Keyset? keyset,
  4. String? using,
})

Adds channels to the channel group.

Implementation

Future<ChannelGroupChangeChannelsResult> addChannels(
    String group, Set<String> channels,
    {Keyset? keyset, String? using}) {
  keyset ??= _core.keysets[using];
  return defaultFlow<ChannelGroupChangeChannelsParams,
          ChannelGroupChangeChannelsResult>(
      keyset: keyset,
      core: _core,
      params: ChannelGroupChangeChannelsParams(keyset, group, add: channels),
      serialize: (object, [_]) =>
          ChannelGroupChangeChannelsResult.fromJson(object));
}