Source
Future addIceCandidate(candidate,
[VoidCallback successCallback,
RtcPeerConnectionErrorCallback failureCallback]) {
if (candidate != null &&
successCallback == null &&
failureCallback == null) {
return _blink.BlinkRTCPeerConnection.instance
.addIceCandidate_Callback_1_(this, candidate);
}
if ((failureCallback is RtcPeerConnectionErrorCallback) &&
(successCallback is VoidCallback) &&
(candidate is RtcIceCandidate)) {
return _blink.BlinkRTCPeerConnection.instance.addIceCandidate_Callback_3_(
this, candidate, successCallback, failureCallback);
}
throw new ArgumentError("Incorrect number or type of arguments");
}