downloadImage method
Downloads the image with the specified identifier, optionally applying a visual transformation.
Implementation
Future<http.Response> downloadImage(
String fileId, {
ImageTransform? transform,
}) async {
return _apiClient.get<http.Response>(
'/files/$fileId',
query: {
...?transform?.toQueryArguments(),
},
headers: _session.authenticationHeaders,
);
}