didPush method

  1. @override
void didPush()
override

Called when the current route has been pushed.

Implementation

@override
void didPush() {
  _routeIsShowing = true;
  // Route was added to the navigator and is now the top-most route.
  if (shouldShowPopover) {
    _removePopover();

    WidgetsBinding.instance.addPostFrameCallback((Duration _) {
      if (!mounted) return;

      _showPopover();
    });
  }
}