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