updateRoute method

void updateRoute()

This method recomputes the route if the route is invalid, to make sure the #points are up-to-date. This method calls #computePoints in order to calculate a new route.

The route may become invalid if either connected node is moved, or if various properties are modified, such as #routing. Such changes will call #invalidateRoute.

It is unusual for you to have to call this method. @since 1.6

Implementation

void updateRoute() {
  _i4.callMethod(
    this,
    'updateRoute',
    [],
  );
}