enqueue method

Future<bool> enqueue(
  1. Task task
)

Enqueue a new Task

Returns true if successfully enqueued. A new task will also generate a TaskStatus.enqueued update to the registered callback, if requested by its updates property

Use enqueue instead of the convenience functions (like download and upload) if:

  • your download/upload is likely to take long and may require running in the background
  • you want to monitor tasks centrally, via a listener
  • you want more detailed progress information (e.g. file size, network speed, time remaining)

Implementation

Future<bool> enqueue(Task task) => _downloader.enqueue(task);