didPush method

  1. @internal
void didPush(
  1. Route? previousRoute
)

Invoked by the RouterComponent when this route is pushed to the top of the navigation stack.

Implementation

@internal
void didPush(Route? previousRoute) {
  _page ??= build();
  (_loadingBuilder != null) ? _addLoadingPage() : _page!.addToParent(this);
  onPush(previousRoute);
}