addIceCandidate method

Future<void> addIceCandidate([
  1. RTCIceCandidateInit? candidate,
  2. VoidFunction? successCallback,
  3. RTCPeerConnectionErrorCallback? failureCallback
])

Implementation

Future<void> addIceCandidate(
        [RTCIceCandidateInit? candidate,
        VoidFunction? successCallback,
        RTCPeerConnectionErrorCallback? failureCallback]) =>
    js_util.promiseToFuture(js_util.callMethod(this, 'addIceCandidate', [
      candidate,
      successCallback == null ? null : allowInterop(successCallback),
      failureCallback == null ? null : allowInterop(failureCallback)
    ]));