multi_downloader2 library

  • author: warith

A plugin provides the capability of creating and managing background download tasks. This plugin depends on native api to run background tasks, so these tasks aren't restricted by the limitation of Dart codes (in term of running background tasks out of scope of a Flutter application). Using native api also take benefit of memory and battery management.

All task information is saved in a Sqlite database, it gives a Flutter application benefit of either getting rid of managing task information manually or querying task data with SQL statements easily.

Classes

DownloadTask
A model class encapsulates all task information according to data in Sqlite database.
DownloadTaskStatus
A class defines a set of possible statuses of a download task
MultiDownloader
A convenient class wraps all api functions of MultiDownloader plugin

Typedefs

DownloadCallback = void Function(String id, DownloadTaskStatus status, int progress)
A signature function for download progress updating callback