toggleAudio method

Future<void> toggleAudio()

Toggles local audio stream on and off.

Implementation

Future<void> toggleAudio() async {
  if (PlatformUtils.isMobile) {
    keepUi();
  }

  await _currentCall.value.toggleAudio();
}