first property

view source

E first

inherited

Implementation

E get first {
  if (length == 0) throw IterableElementError.noElement();
  return this[0];
}

first= (E element)
inherited

Implementation

set first(E element) {
  throw new UnsupportedError("Cannot modify an unmodifiable list");
}