switchSpeaker method

dynamic switchSpeaker(
  1. dynamic flag
)

Implementation

switchSpeaker(flag) {
  if (_localStream != null) {
    _localStream?.getAudioTracks()[0].enableSpeakerphone(flag);
  }
}