popAndPushNamed<T extends Object?, R extends Object?> method
Implementation
Future<T?> popAndPushNamed<T extends Object?, R extends Object?>(
String routeName, {
R? result,
Object? arguments,
NavigatorStateGetter? navigatorStateGetter,
}) {
final action = NavPopAndPushNamedAction<T, R>(routeName, arguments, result);
_navDelegate(action, navigatorStateGetter);
return action.result;
}