PathSeg last

Source

PathSeg get last {
  int len = this.length;
  if (len > 0) {
    return getItem(len - 1);
  }
  throw new StateError("No elements");
}