postFormDataInBgArray abstract method

Future<List> postFormDataInBgArray(
  1. String endPoint,
  2. Map<String, dynamic> param,
  3. Map<String, dynamic> headers
)

Sends a POST request with form data in the background, expecting a list response.

This method is similar to postFormDataInBg but expects the server to return a list of items.

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 List<dynamic> representing the server's response.

Implementation

Future<List<dynamic>> postFormDataInBgArray(String endPoint,
    Map<String, dynamic> param, Map<String, dynamic> headers);