setGroupAttributes method
设置群属性。已有该群属性则更新其 value 值,没有该群属性则添加该属性。
Implementation
@override
Future<V2TimCallback> setGroupAttributes({
required String groupID,
required Map<String, String> attributes,
}) async {
Map<String, dynamic> param = {
"groupID": groupID,
"attributes": attributes,
};
var resp = V2TimCallback.fromJson(
formatJson(
await _channel.invokeMethod(
"setGroupAttributes",
buildGroupManagerParam(
param,
),
),
),
);
log("setGroupAttributes", param, resp.toLogString());
return resp;
}