downloadImage method

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

Downloads the image with the specified identifier, optionally applying a visual transformation.

Implementation

@override
Future<http.Response> downloadImage(
  String fileId, {
  ImageTransformBase? transform,
}) async {
  return _apiClient.get<http.Response>(
    '/files/$fileId',
    query: {
      ...?transform?.toQueryArguments(),
    },
    headers: _session.authenticationHeaders,
  );
}