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
@@ -87,12 +87,7 @@ class WatchTogetherSyncManager {
SyncStateCallback? onSyncStateChanged;
DeferredPlayCallback? onDeferredPlayChanged;
WatchTogetherSyncManager({
required WatchTogetherPeerService peerService,
required WatchSession session,
required this.displayName,
}) : _peerService = peerService,
_session = session;
WatchTogetherSyncManager({required this._peerService, required this._session, required this.displayName});
/// Update the session (e.g., when control mode changes)
void updateSession(WatchSession session) {