uploadFile<T> abstract method
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,
});