resetAndPushNamed<T extends Object?> method
After returning to the first page, you will be redirected to the page named newRouteName
.
You can pass parameters to the page by giving arguments
.
最初のページに戻った後newRouteName
の名前のページに遷移します。
arguments
を与えることでページにパラメータを渡すことができます。
Implementation
Future<T?> resetAndPushNamed<T extends Object?>(
String newRouteName, {
Object? arguments,
}) {
return pushNamedAndRemoveUntil(
newRouteName,
(route) => false,
arguments: arguments,
);
}