durable_queue_transfer library
Uploads and downloads for durable_queue that continue while the app is
in the background or closed, run by background_downloader.
Classes
- QueueTransfers
-
Runs uploads and downloads for a
DurableQueuethrough background_downloader, so they continue while the app is in the background or closed. - TransferResult
- The outcome of a successful transfer, passed to QueueTransfers.onComplete.
Functions
-
isRetryableTransferError(
Object error, StackTrace stackTrace) → bool -
A
retryIfrule for task types that run transfers.
Exceptions / Errors
- TransferEnqueueException
- background_downloader refused to enqueue a transfer.
- TransferException
- A transfer ended without success.
- TransferLostException
- A handed-off transfer that background_downloader no longer knows about, for example because its records were cleared. Retrying starts it again.