Prepare Lunaris 1.1.2 experimental
This commit is contained in:
@@ -11,19 +11,23 @@ enum DownloadTaskStatus {
|
||||
class DownloadTask {
|
||||
const DownloadTask({
|
||||
required this.id,
|
||||
required this.post,
|
||||
required this.fileName,
|
||||
required this.progress,
|
||||
required this.status,
|
||||
this.post,
|
||||
this.sourceUrl,
|
||||
this.openAfterDownload = false,
|
||||
this.savedPath,
|
||||
this.error,
|
||||
});
|
||||
|
||||
final String id;
|
||||
final Post post;
|
||||
final Post? post;
|
||||
final String? sourceUrl;
|
||||
final String fileName;
|
||||
final double progress;
|
||||
final DownloadTaskStatus status;
|
||||
final bool openAfterDownload;
|
||||
final String? savedPath;
|
||||
final String? error;
|
||||
|
||||
@@ -36,9 +40,11 @@ class DownloadTask {
|
||||
return DownloadTask(
|
||||
id: id,
|
||||
post: post,
|
||||
sourceUrl: sourceUrl,
|
||||
fileName: fileName,
|
||||
progress: progress ?? this.progress,
|
||||
status: status ?? this.status,
|
||||
openAfterDownload: openAfterDownload,
|
||||
savedPath: savedPath ?? this.savedPath,
|
||||
error: error,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user