Skip to content

Commit cc7db0b

Browse files
committed
minor internal change
1 parent a35ba65 commit cc7db0b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/src/publication/remote.dart

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -195,24 +195,24 @@ class RemoteTrackPublication<T extends RemoteTrack>
195195
return didUpdate;
196196
}
197197

198-
set videoQuality(lk_models.VideoQuality val) {
199-
if (val == _videoQuality) return;
200-
_videoQuality = val;
198+
set videoQuality(lk_models.VideoQuality newValue) {
199+
if (newValue == _videoQuality) return;
200+
_videoQuality = newValue;
201201
_sendUpdateTrackSettings();
202202
}
203203

204204
bool get enabled => _enabled;
205-
set enabled(bool val) {
206-
if (_enabled == val) return;
207-
_enabled = val;
205+
set enabled(bool newValue) {
206+
if (_enabled == newValue) return;
207+
_enabled = newValue;
208208
_sendUpdateTrackSettings();
209209
}
210210

211-
set subscribed(bool val) {
212-
logger.fine('setting subscribed = ${val}');
213-
if (val == super.subscribed) return;
214-
_sendUpdateSubscription(subscribed: val);
215-
if (!val && track != null) {
211+
set subscribed(bool newValue) {
212+
logger.fine('setting subscribed = ${newValue}');
213+
if (newValue == super.subscribed) return;
214+
_sendUpdateSubscription(subscribed: newValue);
215+
if (!newValue && track != null) {
216216
// Ideally, we should wait for WebRTC's onRemoveTrack event
217217
// but it does not work reliably across platforms.
218218
// So for now we will assume remove track succeeded.

0 commit comments

Comments
 (0)