pushNamed function

Future<Object?> pushNamed(
  1. BuildContext context,
  2. String routeName
)

Implementation

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