ModalRoute should give you the exact route name
ModalRoute.of(context).settings.name
if you use Navigator.popuntil.. check this other answer out by Rémi Rousselet https://stackoverflow.com/a/50817399/5921185
ModalRoute should give you the exact route name
ModalRoute.of(context).settings.name
if you use Navigator.popuntil.. check this other answer out by Rémi Rousselet https://stackoverflow.com/a/50817399/5921185