createFriendGroup method

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

新建好友分组

参数

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

Implementation

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