dart format

This commit is contained in:
2026-05-08 20:12:40 +02:00
parent 9e139b5704
commit 3b8da1d3d6
295 changed files with 6404 additions and 4161 deletions
+7 -2
View File
@@ -49,7 +49,9 @@ class DownloadJob {
final String localPath;
final FileDownloader _downloader;
final ValueNotifier<DownloadStatus> status = ValueNotifier(const DownloadInProgress(0));
final ValueNotifier<DownloadStatus> status = ValueNotifier(
const DownloadInProgress(0),
);
bool _disposed = false;
bool get isFinished =>
@@ -86,7 +88,10 @@ class DownloadManager {
/// Returns the existing job if a download is in progress for [remotePath],
/// otherwise starts a new one. Caller listens on [DownloadJob.status].
Future<DownloadJob> start({required String remotePath, required String name}) async {
Future<DownloadJob> start({
required String remotePath,
required String name,
}) async {
final existing = _jobs[remotePath];
if (existing != null && !existing.isFinished) return existing;
if (existing != null) {