last method
Returns the last node in the list
Implementation
RouteNode last() {
RouteNode curr = this;
while (curr.next != null) {
curr = curr.next!;
}
return curr;
}
Returns the last node in the list
RouteNode last() {
RouteNode curr = this;
while (curr.next != null) {
curr = curr.next!;
}
return curr;
}