changeMicrophoneStatus method

dynamic changeMicrophoneStatus(
  1. bool newValue
)

Implementation

changeMicrophoneStatus(bool newValue) {
  mediaStream?.getAudioTracks().forEach((element) {
    element.enabled = newValue;
  });

  isAudioActive = newValue;
}