push<T extends Object> method
Navigate to a new screen.
Modular.to.push(MaterialPageRoute(builder: (context) => HomePage()),);
Implementation
@override
Future<T?> push<T extends Object>(Route<T> route) => navigator.push(route);