setChannelAttributes2 method

Future<void> setChannelAttributes2(
  1. String channelId,
  2. List<RtmChannelAttribute> attributes, [
  3. ChannelAttributeOptions? option
])

Substitutes the channel attributes with new ones.

Implementation

Future<void> setChannelAttributes2(
    String channelId, List<RtmChannelAttribute> attributes,
    [ChannelAttributeOptions? option]) {
  return _callNative("setChannelAttributes", {
    'channelId': channelId,
    "attributes": jsonDecode(jsonEncode(attributes)),
    "option": option?.toJson(),
  });
}