Navigate to the widget.
Read moreHow do I check my navigation stack in Flutter?
history from anywhere in your code. Use NavigationHistoryObserver(). top to peek on the navigation stack’s top element – which would be the current route.
Read moreHow can I get current route in laravel?
Laravel: How to Get Current Route Name? (v5 & v6)
Read more