download method

Future<Response> download(
  1. String ref
)

download file from the Sanity API.

ref - raw file name from Sanity (file-7e79aad1cfd65cfb551dc4749eea79678384ffef-zip)

Implementation

Future<http.Response> download(String ref) async {
  final Uri uri = _buildDownloadUri(_normalizeFileName(ref));

  return await _client.get(uri);
}