FormUrlEncoded class final

Denotes that the request body will use form URL encoding. Fields should be declared as parameters and annotated with Field/FieldMap.

Requests made with this annotation will have application/x-www-form-urlencoded MIME type. Field names and values will be UTF-8 encoded before being URI-encoded in accordance to RFC-3986.

@Post(path: '/something')
@FormUrlEncoded
Future<Response> fetch(@Field("param") String? param);
Annotations
  • @immutable
  • @Target({TargetKind.method})

Constructors

FormUrlEncoded()
Denotes that the request body will use form URL encoding. Fields should be declared as parameters and annotated with Field/FieldMap.
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