removeLabelData method

void removeLabelData(
  1. String label, {
  2. Map<String, dynamic>? reason,
})

Remove a Label from the Remote Peer and emit a stream-closed event NOTE: This is used internally by the Peer

Implementation

void removeLabelData(String label, {Map<String, dynamic>? reason}) {
  _labelsToProducerId.remove(label);
  emit('stream-closed', {
    'label': label,
    'reason': reason,
  });
}