downloadImage method

Future<Response> downloadImage(
  1. String fileId, {
  2. ImageTransform? transform,
})

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,
  );
}