resetAndPush<T extends Object?> method

Future<T?> resetAndPush<T extends Object?>(
  1. Route<T> newRoute
)

After returning to the first page, you will be redirected to the newRoute page.

最初のページに戻った後newRouteのページに遷移します。

Implementation

Future<T?> resetAndPush<T extends Object?>(
  Route<T> newRoute,
) {
  return pushAndRemoveUntil(
    newRoute,
    (route) => false,
  );
}