PageRouteQuery class

Annotation to define the RouteQuery of the page.

Be sure to define it in the static const field.

By doing so, pages with annotations are defined in the routing object for all pages defined in AppRoute.

ページのRouteQueryを定義するためのアノテーション。

必ずstatic constのフィールドに定義してください。

こうすることによりAppRouteで定義した全ページのルーティングオブジェクトにアノテーションを付与したページが定義されます。

@PagePath("/test")
class Test extends StatelessWidget {
  const Test();

  @pageRouteQuery
  static const query = _$Test;

  @override
  Widget build(BuildContext context){
    //~~~~
  }
}
Available Extensions

Constructors

PageRouteQuery()
Annotation to define the RouteQuery of the page.
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