createFriendGroup method
新建好友分组
参数
groupName 分组名称
userIDList 要添加到分组中的好友 userID 列表
Implementation
@override
Future<V2TimValueCallback<List<V2TimFriendOperationResult>>> createFriendGroup({
required String groupName,
List<String>? userIDList,
}) async {
Map<String, dynamic> param = {
"groupName": groupName,
"userIDList": userIDList,
};
var resp = V2TimValueCallback<List<V2TimFriendOperationResult>>.fromJson(
formatJson(
await _channel.invokeMethod(
"createFriendGroup",
buildFriendManagerParam(
param,
),
),
),
);
log("createFriendGroup", param, resp.toLogString());
return resp;
}