popAndPushNamed function
Implementation
Future<Object?> popAndPushNamed(BuildContext context, String routeName) {
if (!isNavMounted(context)) {
throw "Navigator is unmounted";
}
return Navigator.popAndPushNamed(context, routeName);
}
Future<Object?> popAndPushNamed(BuildContext context, String routeName) {
if (!isNavMounted(context)) {
throw "Navigator is unmounted";
}
return Navigator.popAndPushNamed(context, routeName);
}