terminateCall method

void terminateCall([
  1. bool sendEnd = false
])

Implementation

void terminateCall([bool sendEnd = false]) async {
  Log().info('terminateCall');
  _addStep(step: "terminateCall");
  _closePeer();
  if (sendEnd == true) {
    _sendEndCall();
  }
  await Future.delayed(const Duration(milliseconds: 100));
  _leaveCallChannel();
  await Future.delayed(const Duration(milliseconds: 100));
  _clearCallData();
}