restorablePopAndPushNamed function
Implementation
String restorablePopAndPushNamed(BuildContext context, String routeName) {
if (!isNavMounted(context)) {
throw "Navigator is unmounted";
}
return Navigator.restorablePopAndPushNamed(context, routeName);
}