uploadFormData method

Future<Map<String, dynamic>> uploadFormData(
  1. String endPoint,
  2. Map<String, dynamic> params,
  3. String filePath,
  4. Map<String, dynamic> headers,
)

Uploads form data, including a file, to the server.

endPoint - The API endpoint to which the request is sent. params - The parameters to include in the request body. filePath - The path of the file to be uploaded. headers - The request headers.

Returns a Future containing a Map<String, dynamic> with the response.

Implementation

Future<Map<String, dynamic>> uploadFormData(
        String endPoint,
        Map<String, dynamic> params,
        String filePath,
        Map<String, dynamic> headers) =>
    _apiManagerImpl.uploadFormData(endPoint, params, filePath, headers);