isOnSpeaker method
Switches Audio Device Query's speaker output status, true if on loud speaker.
Implementation
/*Future<String?> switchAudio({String audioDevice = "auto}) {
return _channel.invokeMethod('switchAudio', <String, dynamic>{"audioDevice": audioDevice});
}*/
/// Query's speaker output status, true if on loud speaker.
@override
Future<bool?> isOnSpeaker() {
return _channel.invokeMethod('isOnSpeaker', <String, dynamic>{});
}