popAndPushNamed<T extends Object?, R extends Object?> method

Future<T?> popAndPushNamed<T extends Object?, R extends Object?>(
  1. String routeName, {
  2. R? result,
  3. Object? arguments,
  4. NavigatorStateGetter? navigatorStateGetter,
})

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;
}