pushPage<T extends Object?> method

Future<void> pushPage<T extends Object?>(
  1. Widget page, {
  2. bool dismissKeyboard = true,
  3. bool avoidDuplicatePage = true,
})

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,
  );
}