postFormDataInBg method
Sends a POST request with form data in the background.
This method allows sending form data to the specified API endpoint, processing the request asynchronously.
endPoint
- The API endpoint to which the request is sent.
param
- The form parameters to include in the request body.
headers
- The request headers to send with the request.
Returns a Future containing a Map<String, dynamic> that represents the response from the API.
Implementation
@override
/// Sends a POST request with form data in the background.
///
/// This method allows sending form data to the specified API endpoint,
/// processing the request asynchronously.
///
/// [endPoint] - The API endpoint to which the request is sent.
/// [param] - The form parameters to include in the request body.
/// [headers] - The request headers to send with the request.
///
/// Returns a [Future] containing a [Map<String, dynamic>]
/// that represents the response from the API.
Future<Map<String, dynamic>> postFormDataInBg(
String endPoint,
Map<String, dynamic> param,
Map<String, dynamic> headers,
IDSMethodType method) async {
return await _postFormDataInBg(endPoint, param, headers, method);
}