Query class final

Provides the query parameters of a request.

Query is used to add query parameters after the request url. Example: /something?id=42

@Get(path: '/something')
Future<Response> fetch({@Query() String id});

See QueryMap to pass an Map<String, dynamic> as value

Annotations
  • @immutable
  • @Target({TargetKind.parameter})

Constructors

Query([String? name])
Provides the query parameters of a request.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
Name is used to bind a method parameter to the query 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