RequestOptions class Null safety
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
-
read / write
- data ↔ dynamic
-
read / write
- form ↔ bool
-
read / write
-
formFields
↔ Map<
String, String> ? -
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- method ↔ String
-
read / write
-
query
↔ Map<
String, String> ? -
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- timeout ↔ Duration
-
read / write
- version ↔ int?
-
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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