download method

Future<File?>? download()

Downloads this FileAttachment.

Implementation

Future<File?>? download() =>
    CacheWorker.instance
        .download(
          original.url,
          filename,
          original.size,
          checksum: original.checksum,
        )
        .future;