toggleMute method

void toggleMute()

Implementation

void toggleMute() {
  final activeCall = call?.call;
  if (activeCall == null) return;
  if (activeCall.session.isMuted()['audio']) {
    activeCall.unmute(true, false);
  } else {
    activeCall.mute(true, false);
  }
}