I want to navigate to different Routes using a Drawer, though I do not want to open a new instance of a Route each time I tap on it if I am already on that Route, rather I would
This is my solution.
void redirect(screen){ Navigator.popUntil(context, (route) { if ( route.settings.name != screen) { Navigator.pushNamed(context, screen); } return true; }); }