dart format
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user