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 moreHow do you get route arguments in Flutter?
Navigate to the widget.
Read more