pushNamed static method

Future pushNamed(
  1. String routeName, {
  2. dynamic arguments,
})

Implementation

static Future<dynamic> pushNamed(String routeName,
    {dynamic arguments}) async {
  return navigatorKey.currentState
      ?.pushNamed(routeName, arguments: arguments);
}