Route getCurrentPage(String routeName) { late Route currentRoute; popUntil((route) { currentRoute = route; return true; }); return currentRoute; }