onSwitched method

void onSwitched(
  1. int callId
)

Handle call switched event raised by library

Implementation

void onSwitched(int callId) {
  _logs?.print('onSwitched callId:$callId');

  if(_switchedCallId != callId) {
    _switchedCallId = callId;
    notifyListeners();
    onSwitchedCall?.call(_switchedCallId);
  }
}