APIRequest class
- Implementers
Constructors
-
APIRequest({required String endpoint, HTTPMethod method = HTTPMethod.get, Map<
String, String> ? headers, Map<String, String> ? query = const {}, dynamic body, String contentType = "application/json", bool isLogResponse = false, String? baseUrl, bool isBaseResponse = true, bool isMultiLanguage = true})
Properties
- baseUrl ↔ String
-
getter/setter pair
- body ↔ dynamic
-
getter/setter pair
- contentType ↔ String
-
getter/setter pair
- endpoint ↔ String
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, String> ? -
getter/setter pair
- isBaseResponse ↔ bool
-
getter/setter pair
- isLogResponse ↔ bool
-
getter/setter pair
- isMultiLanguage ↔ bool
-
getter/setter pair
- method ↔ HTTPMethod
-
getter/setter pair
-
query
↔ Map<
String, String> ? -
getter/setter pair
- 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
-
request(
) → Future -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited