history from anywhere in your code. Use NavigationHistoryObserver(). top to peek on the navigation stack’s top element – which would be the current route.
history from anywhere in your code. Use NavigationHistoryObserver(). top to peek on the navigation stack’s top element – which would be the current route.