fix: add defaults

This commit is contained in:
Simon Ding
2024-08-01 13:05:05 +08:00
parent 7508a264a6
commit 6e002b1198

View File

@@ -210,8 +210,8 @@ class DownloadClient {
this.url, this.url,
this.user, this.user,
this.password, this.password,
this.removeCompletedDownloads, this.removeCompletedDownloads = true,
this.removeFailedDownloads}); this.removeFailedDownloads = true});
DownloadClient.fromJson(Map<String, dynamic> json) { DownloadClient.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];