rejectCall method

Future<bool> rejectCall({
  1. String? callId,
})

rejectCall will reject incoming call

Implementation

Future<bool> rejectCall({String? callId}) async {
  var result = await wpClient.evaluateJs(
    '''window.WPP.call.rejectCall(${callId.jsParse});''',
    methodName: "RejectCallResult",
  );
  return result == true || result?.toString() == "true";
}