updateMicrophoneState method

void updateMicrophoneState(
  1. String streamID,
  2. bool state
)

Implementation

void updateMicrophoneState(String streamID, bool state) {
  final index = playingStreamListNotifier.value.indexWhere(
    (e) => e.streamID == streamID,
  );
  if (-1 == index) {
    return;
  }

  final streamInfo = playingStreamListNotifier.value[index];
  streamInfo.microphone.value = state;
}