add method Null safety

void add(
  1. int value
)
inherited

This operation is not supported by an unmodifiable list.

Implementation

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