push<T> method
Equals to Navigator.of(context).push() Give it the Route you want to push
Example
context.push(MaterialPageRoute(builder: (context) => CounterPage()));
Implementation
Future<T?> push<T>(Route<T> route) async => Navigator.of(this).push<T>(route);