isCompleted property

bool get isCompleted

Implementation

bool get isCompleted {
  switch (this) {
    case DownloadStatus.queued:
      return false;
    case DownloadStatus.downloading:
      return false;
    case DownloadStatus.paused:
      return false;
    case DownloadStatus.completed:
      return true;
    case DownloadStatus.failed:
      return true;

    case DownloadStatus.canceled:
      return true;
  }
}