state property

GoRouterState? get state

The top GoRouterState, the state of the route that was last used in either GoRouter.go or GoRouter.push.

Implementation

GoRouterState? get state => currentConfiguration.last
    .buildState(_configuration, currentConfiguration);