updateState method

void updateState(
  1. RouteInformation routeInformation
)

Updates the state upon receiving new RouteInformation, which usually happens after BeamerDelegate.setNewRoutePath.

Override this if you are using custom state whose copying should be handled customly.

See update.

Implementation

void updateState(RouteInformation routeInformation) {
  state = createState(routeInformation);
}