RequestOptions class

Constructors

RequestOptions({Map<String, dynamic>? include, Map<String, dynamic>? query, Map<String, dynamic>? data, Map<String, dynamic>? files, bool file = false, bool system = false, int? apiNumber, bool access = false, bool refresh = false, bool waitRef = true, bool error = true, Skill3ResponseType? responseType, Duration? timeout})
const

Properties

access → bool
Send the access token.
final
apiNumber → int?
Use environment.apiUrls[apiNumber - 1] as base URL.
final
data → Map<String, dynamic>?
Request body. Multipart when file is true or files is set, JSON otherwise.
final
error → bool
Handle site/user token errors and retry once.
final
file → bool
POST/PUT: send multipart. GET: read the response as bytes.
final
files → Map<String, dynamic>?
Merged into data and forces multipart.
final
hashCode → int
The hash code for this object.
no setterinherited
include → Map<String, dynamic>?
final
query → Map<String, dynamic>?
final
refresh → bool
Send the refresh token (takes effect only when access is false).
final
responseType → Skill3ResponseType?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
system → bool
Use environment.apiUrlSystem as base URL.
final
timeout → Duration?
Overrides Skill3Config.timeout for this request.
final
waitRef → bool
Wait for the site token when none is stored yet.
final

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