ApiManager class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
makeApiCall({required String callName, required String apiUrl, required ApiCallType callType, Map<String, dynamic> params = const {}, String? body, BodyType? bodyType, bool returnBody = true, bool encodeBodyUtf8 = false, bool decodeUtf8 = false, bool cache = false})
→ Future<ApiCallResponse>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
asQueryParams(Map<String, dynamic> map)
→ String
-
-
clearCache(String callName)
→ void
-
-
createBody(Map<String, dynamic> headers, Map<String, dynamic>? params, String? body, BodyType? bodyType, bool encodeBodyUtf8)
→ dynamic
-
-
multipartRequest(ApiCallType? type, String apiUrl, Map<String, dynamic> params, bool returnBody, bool decodeUtf8)
→ Future<ApiCallResponse>
-
-
requestWithBody(ApiCallType type, String apiUrl, Map<String, dynamic> headers, Map<String, dynamic> params, String? body, BodyType? bodyType, bool returnBody, bool encodeBodyUtf8, bool decodeUtf8)
→ Future<ApiCallResponse>
-
-
toStringMap(Map map)
→ Map<String, String>
-
-
urlRequest(ApiCallType callType, String apiUrl, Map<String, dynamic> params, bool returnBody, bool decodeUtf8)
→ Future<ApiCallResponse>
-