postFormDataInBg abstract method

Future<Map<String, dynamic>> postFormDataInBg(
  1. String endPoint,
  2. Map<String, dynamic> param,
  3. Map<String, dynamic> headers,
  4. IDSMethodType method,
)

Sends a POST request with form data in the background.

This method is used to send application/x-www-form-urlencoded form data.

Parameters:

  • endPoint: The API endpoint to which the form data will be sent.
  • param: A map of key-value pairs to be included in the form data.
  • headers: A map of headers to include in the request.

Returns:

  • A Future that resolves to a Map<String, dynamic> representing the server's response.

Implementation

Future<Map<String, dynamic>> postFormDataInBg(
    String endPoint,
    Map<String, dynamic> param,
    Map<String, dynamic> headers,
    IDSMethodType method);