- override
Called after install() when the route is pushed onto the navigator.
Source
@override void didPush() { if (!settings.isInitialRoute) { BuildContext overlayContext = navigator.overlay?.context; assert(() { if (overlayContext == null) { throw new FlutterError( 'Unable to find the BuildContext for the Navigator\'s overlay.\n' 'Did you remember to pass the settings object to the route\'s ' 'constructor in your onGenerateRoute callback?' ); } return true; }); Focus.moveScopeTo(focusKey, context: overlayContext); } super.didPush(); }