changeState method

void changeState(
  1. CallState state,
  2. Call call
)

Implementation

void changeState(CallState state, Call call) {
  // You can add any additional logic here before invoking the callback
  call.callState = state;
  onCallStateChanged(state);
}