Request class
Constructors
-
Request({required String? endpoint, HttpMethod method = HttpMethod.get, Map<
String, String> ? headers, Map<String, dynamic> ? queryParameters, OnProgress? onProgress, dynamic body, Encoding? encoding, DateTime? createdAt, ObjectId? id, CacheKey? key}) - Request.fromJson(dynamic json)
Properties
- body ↔ dynamic
-
getter/setter pair
- createdAt → DateTime
-
Request creation timestamp.
final
- encoding ↔ Encoding?
-
getter/setter pair
- endpoint ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
final
- id → ObjectId
-
The id of current request.
final
- key ↔ CacheKey?
-
Identifies (groups) requests.
getter/setter pair
-
linkData
→ Map<
String, dynamic> -
Here you can assign your data that will be passed to the next link
final
- method ↔ HttpMethod
-
getter/setter pair
- onProgress ↔ OnProgress?
-
getter/setter pair
-
queryParameters
→ Map<
String, dynamic> -
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
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited