pushEasy<T> method
Similar to Navigator.of(context).push()
Just give it the page
you want to push
Example
context.pushEasy(CounterPage());
Implementation
Future<T?> pushEasy<T>(
Widget page, {
RouteSettings? settings,
}) async =>
Navigator.of(this).push<T>(MaterialPageRoute(
builder: (_) => page,
settings: settings,
));