removeReceiver method

void removeReceiver(
  1. String peerConnectionId
)

Implementation

void removeReceiver(String peerConnectionId) {
  final int index = _receivers.indexWhere(
    (params) => params.peerConnection.peerConnectionId == peerConnectionId,
  );

  if (index < 0) return;

  _receivers.removeAt(index);
}