removeChannels method

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

Removes channels from a channel group.

Implementation

Future<ChannelGroupChangeChannelsResult> removeChannels(
    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, remove: channels),
      serialize: (object, [_]) =>
          ChannelGroupChangeChannelsResult.fromJson(object));
}