postFormDataInBgArray 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<List<dynamic>> postFormDataInBgArray(String endPoint,
Map<String, dynamic> param, Map<String, dynamic> headers) async {
return await _postFormDataInBgArray(endPoint, param, headers);
}