updateChannel method

Future<OpenChannel> updateChannel(
  1. OpenChannelUpdateParams params,
  2. {ProgressHandler? progressHandler}
)

The custom type of the channel. You can set custom type of this channel by createChannel or updateChannel.

Implementation

Future<OpenChannel> updateChannel(
  OpenChannelUpdateParams params, {
  ProgressHandler? progressHandler,
}) async {
  sbLog.i(StackTrace.current, 'params.name: ${params.name}');

  return await chat.apiClient.send<OpenChannel>(OpenChannelUpdateRequest(
      chat, channelUrl, params,
      progressHandler: progressHandler));
}