postFormDataInBg method

  1. @override
Future<Map<String, dynamic>> postFormDataInBg(
  1. String endPoint,
  2. Map<String, dynamic> param,
  3. Map<String, dynamic> headers,
  4. IDSMethodType method,
)
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.

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);
}