uploadFile<T> abstract method

Future<Response<T>> uploadFile<T>(
  1. String path,
  2. FormData data, {
  3. Map<String, dynamic>? headers,
})

The uploadFile method is used to upload a file to a specified path using an HTTP request. It takes the path of the file to be uploaded and a FormData object containing the file data as parameters. Additionally, it can also accept an optional headers parameter to include any custom headers in the request.

Implementation

Future<Response<T>> uploadFile<T>(
  String path,
  FormData data, {
  Map<String, dynamic>? headers,
});