getConsumer method
Get the associated consumer for the label
@param label - Unique identifier for the consumer e.g. video
| audio
| screen-share-video
| string
@returns Consumer | null
Implementation
Consumer? getConsumer(String label) {
try {
final localPeer = LocalPeer.getInstance();
final consumer = localPeer.getConsumer(label: label, peerId: peerId);
return consumer;
} catch (error) {
return null;
}
}