toggleMuteAudio method

Future<void> toggleMuteAudio()

Implementation

Future<void> toggleMuteAudio() async {
  var status = await Permission.microphone.status;
  if (status.isDenied) {
    await Permission.microphone.request();
  }

  print("audioMute$isAudioMute");
  await EnxRtc.muteSelfAudio(!isAudioMute);
}