resetAndPushNamed<T extends Object?> method

Future<T?> resetAndPushNamed<T extends Object?>(
  1. String newRouteName, {
  2. Object? arguments,
})

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