pushNamed<T extends Object> method
Navigate to a route.
Modular.to.pushNamed('/home/10');
You could give parameters
Modular.to.pushNamed('/home', arguments: 10);
Implementation
@override
Future<T?> pushNamed<T extends Object>(String routeName,
{Object? arguments}) =>
navigator.pushNamed(routeName, arguments: arguments);