state property
GoRouterState?
get
state
The top GoRouterState, the state of the route that was last used in either GoRouter.go or GoRouter.push.
Accessing this property via GoRouter.of(context).state will not cause rebuild if the state has changed, consider using GoRouterState.of(context) instead.
Implementation
GoRouterState? get state => routerDelegate.state;