getChannelAttributes method
Gets all attributes of a specified channel.
Implementation
Future<List<AgoraRtmChannelAttribute>> getChannelAttributes(
String channelId) async {
final res =
await _callNative("getChannelAttributes", {'channelId': channelId});
if (res["errorCode"] != 0)
throw AgoraRtmClientException(
"getChannelAttributes failed errorCode:${res['errorCode']}",
res['errorCode']);
return (List<Map<dynamic, dynamic>>.from(res["attributes"]))
.map((attr) => AgoraRtmChannelAttribute.fromJson(attr))
.toList();
}