IDSApiManagerImpl class

IDSApiManagerImpl

Implemented types

Constructors

IDSApiManagerImpl.new()
Public factory constructor that returns the singleton instance
factory

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

getArrayRequest({required String endPoint, required Map<String, dynamic> headers}) Future<List>
Sends a GET request to the given endPoint and expects an array in the response.
override
getInBg(String endPoint, Map<String, dynamic> headers) Future<Map<String, dynamic>>
Sends a GET request in the background.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postFormDataInBg(String endPoint, Map<String, dynamic> param, Map<String, dynamic> headers, IDSMethodType method) Future<Map<String, dynamic>>
Sends a POST request with form data in the background.
override
postFormDataInBgArray(String endPoint, Map<String, dynamic> param, Map<String, dynamic> headers) Future<List>
Sends a POST request with form data in the background.
override
postInBg(String endPoint, Map<String, dynamic> param, Map<String, dynamic> headers) Future<Map<String, dynamic>>
Sends a POST request in the background.
override
sendFormEncodedRequest({required String endPoint, required Map<String, dynamic> param, required Map<String, dynamic> headers, IDSMethodType method = IDSMethodType.post}) Future
Sends an HTTP request with application/x-www-form-urlencoded content type.
override
sendFormRequest({required String endPoint, required Map<String, dynamic> param, required Map<String, dynamic> headers, IDSMethodType method = IDSMethodType.post}) Future
Sends an HTTP request with form-encoded data to the specified API endpoint.
override
sendRequest({required String endPoint, required Map<String, dynamic> param, required Map<String, dynamic> headers, IDSMethodType method = IDSMethodType.post}) Future
Sends an HTTP request to the specified endPoint using the given param, headers, and method.
override
toString() String
A string representation of this object.
inherited
uploadFormData(String endPoint, Map<String, dynamic> params, String filePath, Map<String, dynamic> headers) Future<Map<String, dynamic>>
Uploads form data, including a file, to the server.
override
uploadMultiPartFormData({required String endPoint, required Map<String, dynamic> payloadParams, required Map<String, dynamic>? fileUploads, required Map<String, dynamic> headers, required IDSMethodType method}) Future<Map<String, dynamic>>
Uploads form data, including multiple files, to the server.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited