ApiRequestConfig<TResponse extends ResponseBase> class
- Annotations
-
- @immutable
Constructors
-
ApiRequestConfig({required Uri url, required JsonDeserializer<
TResponse> fromJson, Object? body, Encoding? encoding, String? authCode, String? authToken, Map<String, dynamic> params = const <String, dynamic>{}, Map<String, String> headers = const <String, String>{}, HttpMethod method = HttpMethod.get}) -
const
Properties
-
allHeaders
→ Map<
String, String> -
no setter
- authCode → String?
-
final
- authToken → String?
-
final
- body → Object?
-
final
- encoding → Encoding?
-
final
-
fromJson
→ JsonDeserializer<
TResponse> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
final
- method → HttpMethod
-
final
-
params
→ Map<
String, dynamic> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → Uri
-
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