refactor: use private named constructor params

This commit is contained in:
edde746
2026-05-20 23:48:29 +02:00
parent 448a5d084c
commit 209101796b
18 changed files with 41 additions and 90 deletions
+1 -3
View File
@@ -23,9 +23,7 @@ class OfflineWatchProvider extends ChangeNotifier with DisposableChangeNotifierM
final OfflineWatchSyncService _syncService;
final DownloadProvider _downloadProvider;
OfflineWatchProvider({required OfflineWatchSyncService syncService, required DownloadProvider downloadProvider})
: _syncService = syncService,
_downloadProvider = downloadProvider {
OfflineWatchProvider({required this._syncService, required this._downloadProvider}) {
// Listen to sync service changes to update UI
_syncService.addListener(_onSyncServiceChanged);
}