push<T extends Object?> method
Navigates to a new route.
Example:
context.push(MyPage());
Implementation
Future<T?> push<T extends Object?>(Widget route) =>
Navigator.of(this).push<T>(
MaterialPageRoute<T>(builder: (BuildContext _) => route),
);