pushPage<T extends Object?> method
Push the given page onto the navigator.
Implementation
Future<void> pushPage<T extends Object?>(
Widget page, {
bool dismissKeyboard = true,
bool avoidDuplicatePage = true,
}) async {
await pushRoute<T>(
MaterialPageRoute<T>(builder: (context) => page),
dismissKeyboard: dismissKeyboard,
avoidDuplicateRoute: avoidDuplicatePage,
);
}