Skip to content

Commit d2fb0a3

Browse files
committed
Replace UpdateState with setter.
1 parent 3fe2daf commit d2fb0a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/sip_ua_helper.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class SIPUAHelper extends EventManager {
337337
logger.e('Call ${event.id} not found!');
338338
return;
339339
}
340-
call.UpdateState(state.state);
340+
call.state = state.state;
341341
_sipUaHelperListeners.forEach((listener) {
342342
listener.callStateChanged(call, state);
343343
});
@@ -373,8 +373,8 @@ class Call {
373373
RTCSession _session;
374374
Call(this._id, this._session, this._stateEnum);
375375

376-
void UpdateState(CallStateEnum stateEnum) {
377-
_stateEnum = stateEnum;
376+
set state(CallStateEnum state) {
377+
_stateEnum = state;
378378
}
379379

380380
CallStateEnum get state => _stateEnum;

0 commit comments

Comments
 (0)