DownloadTask class

class to store download task downloadId download id inQueue in queue totalLength total length totalDownloaded total downloaded path path maxSplit max split status status blocks blocks fileName file name headers headers url url outputFilePath output file path hashCode hash code

Available extensions
Annotations

Constructors

DownloadTask({required IsarMapEntityEasyDownloader headers, required String path, required String fileName, required String url, Id downloadId = Isar.autoIncrement, int totalLength = 0, int maxSplit = 0, DownloadStatus status = DownloadStatus.none, List<DownloadBlock> blocks = const [], int totalDownloaded = 0, bool inQueue = false})
const

Properties

blocks List<DownloadBlock>
final
downloadId Id
final
fileName String
final
hashCode int
The hash code for this object.
no setteroverride
headers → IsarMapEntityEasyDownloader
final
inQueue bool
final
maxSplit int
final
outputFilePath String
no setter
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status DownloadStatus
final
totalDownloaded int
final
totalLength int
final
url String
final

Methods

copyWith({int? downloadId, int? totalLength, int? totalDownloaded, String? path, int? maxSplit, DownloadStatus? status, List<DownloadBlock>? blocks, String? fileName, String? tempPath, IsarMapEntityEasyDownloader? headers, String? url, bool? showNotification, bool? inQueue}) DownloadTask
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.
override