removeAll 方法
override
从该集合中删除 elements
中的每个元素。
final characters = <String>{'A', 'B', 'C'};
characters.removeAll({'A', 'B', 'X'});
print(characters); // {C}
实现
void removeAll(Iterable<Object?> elements) {
for (Object? element in elements) remove(element);
}