📅  最后修改于: 2022-03-11 14:59:36.753000             🧑  作者: Mango
final categoryNumbers = categoryList.map((e) => e.categoryNumber).toSet();
categoryList.retainWhere((x) => categoryNumbers.remove(x.categoryNumber));