DownloadTaskModel class

Constructors

DownloadTaskModel({required String id, required String url, required String fileName, required String filePath, required String tempPath, required DownloadTaskStatus status, required int downloadedBytes, required int totalBytes, required int retries, required int updatedAtMillis})
const

Properties

downloadedBytes → int
final
fileName → String
final
filePath → String
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
retries → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → DownloadTaskStatus
final
tempPath → String
final
totalBytes → int
final
updatedAtMillis → int
final
url → String
final

Methods

copyWith({DownloadTaskStatus? status, int? downloadedBytes, int? totalBytes, int? retries}) → DownloadTaskModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) → DownloadTaskModel