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
});
}
Constructors
- QueryParam([String? name])
-
Annotation to map each widget parameter to a query parameter in the page path.
const
Properties
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