RequestOptions class

Constructors

RequestOptions({int? version = 1, Map<String, String>? query, dynamic data, Duration timeout = const Duration(seconds: 20), String clientId = 'dart-1', String method = 'GET', bool form = false, Map<String, String>? formFields})
RequestOptions.fromClientId(String clientId)
RequestOptions.v1()

Properties

clientId String
getter/setter pair
data ↔ dynamic
getter/setter pair
form bool
getter/setter pair
formFields Map<String, String>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
method String
getter/setter pair
query Map<String, String>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
getter/setter pair
version int?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setData(Object d) RequestOptions
setQuery(Map<String, String> q) RequestOptions
setTimeout(Duration timeout) RequestOptions
setVersion(int version) RequestOptions
toString() String
A string representation of this object.
inherited
useForm() RequestOptions

Operators

operator ==(Object other) bool
The equality operator.
inherited