createFriendGroup method

Future<V2TimValueCallback<List<V2TimFriendOperationResult>>> createFriendGroup({
  1. required String groupName,
  2. List<String>? userIDList,
})

新建好友分组

参数

groupName	分组名称
userIDList	要添加到分组中的好友 userID 列表

Implementation

Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
    createFriendGroup({
  required String groupName,
  List<String>? userIDList,
}) async {
  return V2TimValueCallback<List<V2TimFriendOperationResult>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "createFriendGroup",
        buildParam(
          {
            "groupName": groupName,
            "userIDList": userIDList,
          },
        ),
      ),
    ),
  );
}