last property

view source

E last

inherited

Implementation

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

last= (E value)
inherited

Implementation

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