popAndPushNamed static method

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

Implementation

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