RouteQueryBuilder constructor

const RouteQueryBuilder()

Class for building page queries.

Entering the current path in resolve will return RouteQuery only if it corresponds to that path.

This allows the transition to the appropriate path.

By passing it to AppRouter and invoking it in MaterialApp.router, this builder can be used with named routing corresponding to a Web URL.

ページクエリをビルドするためのクラス。

resolveに現在のパスを入力するとそのパスに該当する場合のみRouteQueryを戻すようにします。

それにより適切なパスへ遷移することが可能です。

AppRouterに渡してMaterialApp.routerで起動することによりこのビルダーをWebのURLに対応した名前付きルーティングで利用することができるようになります。

Implementation

const RouteQueryBuilder();