update method
Update the channel custom data. This replaces all of the channel data
with the given channelData
.
If you instead want to do a partial update, use updatePartial.
See, https://getstream.io/chat/docs/other-rest/channel_update/?language=dart for more information.
Implementation
Future<UpdateChannelResponse> update(
Map<String, Object?> channelData, {
Message? updateMessage,
}) async {
_checkInitialized();
return _client.updateChannel(
id!,
type,
channelData,
message: updateMessage,
);
}