toString method

  1. @override
String toString()
override

Returns a string representation of the download task, including all key properties.

Implementation

@override
String toString() {
  return 'Task [ '
      'ID: $id, '
      'URL: $uri, '
      'Status: $status, '
      'StartRange: $startRange, '
      'EndRange: $endRange, '
      'Priority: $priority, '
      'Progress: $progress, '
      'DownloadedBytes: $downloadedBytes, '
      'TotalBytes: $totalBytes, '
      'CacheDir: $cacheDir, '
      'SaveFile: $saveFile, '
      'HLSKey: $hlsKey, '
      ' ]';
}