popAndPushNamed<T extends Object, TO extends Object> abstract method
Pop the current route off the navigator and navigate to a route.
Modular.to.popAndPushNamed('/home');
You could give parameters
Modular.to.popAndPushNamed('/home', arguments: 10);
Implementation
Future<T?> popAndPushNamed<T extends Object, TO extends Object>(
String routeName,
{TO? result,
Object? arguments});