E removeLast()

Pops and returns the last object in this list.

Throws an UnsupportedError if this is a fixed-length list.

Source

E removeLast() {
  throw new UnsupportedError("Cannot remove from immutable List.");
}