getTeamInfoByIds static method

Future<List<NIMTeam>?> getTeamInfoByIds(
  1. List<String> teamIds,
  2. NIMTeamType type
)

批量查询群资料

Implementation

static Future<List<NIMTeam>?> getTeamInfoByIds(
    List<String> teamIds, NIMTeamType type) {
  return NimCore.instance.teamService
      .getTeamInfoByIds(teamIds, type)
      .then((result) {
    if (result.isSuccess) {
      return result.data;
    }
    return null;
  });
}