You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moved from http to dio for better control over the headers and other options
LinkDetails has more options such as method & body
here is the example of how to use the LinkDetails
LinkDetails(
link:"www.example.com/file.extention",
headers:/// Your headers here,
method:/// Your method here (GET, POST, PUT, DELETE, PATCH),
body:/// Request body here
),
Both saveFile and saveAs methods now have the dioClient & transformDioResponse as a parameter, so you can pass your own dio client to the method and it will use that client to download the file & you can also pass the transformDioResponse to transform the response as per your requirement.\