downloadStatus property

DownloaderStatus get downloadStatus

Implementation

DownloaderStatus get downloadStatus {
  switch (status) {
    case DownloaderStatus.downloading:
      return DownloaderStatus.downloading;
    case DownloaderStatus.paused:
      return DownloaderStatus.paused;
    case DownloaderStatus.failed:
      return DownloaderStatus.failed;
    case DownloaderStatus.succeeded:
      return DownloaderStatus.succeeded;
    default:
      return DownloaderStatus.unstarted;
  }
}