updateChannel method
Future<GroupChannel>
updateChannel(
- GroupChannelParams params, {
- OnUploadProgressCallback? progress,
Updates this channel with given params
and optional progress
.
After this method completes successfully, channel event such as
ChannelEventHandler.onChannelOperatorsUpdated and
ChannelEventHandler.onChannelChanged can be invoked
based on given params
.
Implementation
Future<GroupChannel> updateChannel(
GroupChannelParams params, {
OnUploadProgressCallback? progress,
}) async {
params.channelUrl ??= channelUrl;
if (params.channelUrl != channelUrl) {
throw InvalidParameterError();
}
return _sdk.api.send<GroupChannel>(
GroupChannelUpdateRequest(params, onProgress: progress));
}