updateChannel method

Future<UpdateChannelResponse> updateChannel(
  1. String channelId,
  2. String channelType,
  3. Map<String, Object?> data,
  4. {Message? message}
)

Replaces the channelId of type ChannelType data with data.

Use updateChannelPartial for a partial update.

Implementation

Future<UpdateChannelResponse> updateChannel(
  String channelId,
  String channelType,
  Map<String, Object?> data, {
  Message? message,
}) =>
    _chatApi.channel.updateChannel(
      channelId,
      channelType,
      data,
      message: message,
    );