add方法

void add(
  1. E value
)
继承

此操作不支持不可修改的列表。

实现

void add(E value) {
  throw new UnsupportedError("Cannot add to an unmodifiable list");
}