first property

view source

E first

inherited

Implementation

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

first= (E value)
inherited

Implementation

void set first(E value) {
  if (length == 0) throw IterableElementError.noElement();
  this[0] = value;
}