last method

Returns the last node in the list

Implementation

RouteNode last() {
  RouteNode curr = this;

  while (curr.next != null) {
    curr = curr.next!;
  }

  return curr;
}