setSpeakerphone method

Future<void> setSpeakerphone(
  1. bool enabled
)

Set whether speakerphone is enabled.

Implementation

Future<void> setSpeakerphone(bool enabled) async {
  await _channel.invokeMethod('speakerphone', {"enabled": enabled});
  speakerphone = enabled;
}