didPush method

  1. @override
TickerFuture didPush ()
override

Called after install when the route is pushed onto the navigator.

The returned value resolves when the push transition is complete.

The didChangeNext and didChangePrevious methods are typically called immediately after this method is called.

Implementation

@override
TickerFuture didPush() {
  if (_scopeKey.currentState != null) {
    navigator.focusScopeNode.setFirstFocus(_scopeKey.currentState.focusScopeNode);
  }
  return super.didPush();
}