QueryParam class

Annotation to map each widget parameter to a query parameter in the page path.

For example, if a request is made with the path /search?q=text in the following case, the text character is passed to query.

各ウィジェットのパラメーターとページパスのクエリーパラメーターを対応するためのアノテーション。

例えば下記の場合/search?q=textというパスでリクエストが行われた場合、textの文字がqueryに渡されます。

@PagePath("/search")
class Test extends StatelessWidget {
  const Test({
    @QueryParam("q") required String query,
    super.key
  });

}
Available Extensions

Constructors

QueryParam([String? name])
Annotation to map each widget parameter to a query parameter in the page path.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
Name of parameter.
final
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