AppRoute class
Automatically generates routing for the entire application.
By adding this annotation to the global field as shown in the example below, all pages defined with @PagePath will be automatically defined and routable in the application.
アプリケーション全体のルーティングを自動生成します。
下記の例のようにグローバルのフィールドにこのアノテーションを付与することでアプリケーション内で@PagePathを付与して定義されたすべてのページが自動的に定義されルーティングが可能になります。
@appRoute
final appRouter = AutoRouter();
void main(){
runApp(
MaterialApp.router(
routerConfig: appRouter,
title: "Application",
);
);
}
Constructors
- AppRoute()
-
Automatically generates routing for the entire application.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited