dynamic enterRoute(
RouteEvent e
)

When enter in a new route. This function call the enterRoute function of the current element if it's possible.

Source

/// When enter in a new route.
/// This function call the enterRoute function of the current element if it's possible.
@reflectable
enterRoute(RouteEvent e) {
  if (element != null) {
    try {
      element.enterRoute(e);
    } catch (e) {}
  }
}