setSpeaker method
- AudioSpeakerKind speaker
Sets the speaker
to use for audio output.
Only meaningful on mobile devices.
Implementation
Future<void> setSpeaker(AudioSpeakerKind speaker) async {
if (_isMobile && _speaker != speaker) {
_speaker = speaker;
await _setSpeaker();
}
}