checkDeviceIsSpeaker method

bool checkDeviceIsSpeaker({
  1. required AudioDevice device,
})

Implementation

bool checkDeviceIsSpeaker({required AudioDevice device}) {
  if (device.type == AudioDeviceType.builtInSpeaker) {
    return true;
  }
  return false;
}