download method

Future<Uint8List> download()

Downloads the image file bytes through $FileService.getFileBytes, which applies requestPolicy and the offline blob cache.

Implementation

Future<Uint8List> download() {
  return client.files.getFileBytes(
    recordId: recordId,
    recordCollectionName: recordCollectionName,
    filename: filename,
    thumb: thumb,
    token: token,
    autoGenerateToken: autoGenerateToken,
    requestPolicy: requestPolicy,
    expireAfter: expireAfter,
    timeout: timeout,
  );
}