declineCall method

void declineCall()

Implementation

void declineCall() async {
  Log().info('declineCall');
  final deviceId = await _getDeviceId();
  _addStep(step: "declineCall", data: {"deviceId":deviceId});
  _sendEndCall();
  await Future.delayed(const Duration(milliseconds: 10));
  _closePeer();
  _leaveCallChannel();
  await Future.delayed(const Duration(milliseconds: 100));
  _clearCallData();
}