onCallHangup method

Future<void> onCallHangup(
  1. CallSession call
)

Implementation

Future<void> onCallHangup(CallSession call) async {
  if (call.hangupReason == CallErrorCode.Replaced) {
    return;
  }
  await onStreamsChanged(call);
  await removeCall(call, call.hangupReason!);
}