DownloadTask class

A model class encapsulates all task information according to data in Sqlite database.

  • taskId the unique identifier of a download task
  • status the latest status of a download task
  • progress the latest progress value of a download task
  • url the download link
  • filename the local file name of a downloaded file
  • savedDir the absolute path of the directory where the downloaded file is saved

Constructors

DownloadTask({String? taskId, DownloadTaskStatus? status, int? progress, String? url, String? filename, String? image, String? srt, String? name, String? savedDir, int? timeCreated})

Properties

filename String?
final
hashCode int
The hash code for this object.
no setterinherited
image String?
final
name String?
final
progress int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
savedDir String?
final
srt String?
final
status DownloadTaskStatus?
final
taskId String?
final
timeCreated int?
final
url String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited