checkDeviceIsHeadphone method
Implementation
bool checkDeviceIsHeadphone({required AudioDevice device}) {
if (device.type == AudioDeviceType.wiredHeadset ||
device.type == AudioDeviceType.wiredHeadphones ||
device.type == AudioDeviceType.headsetMic) {
return true;
}
return false;
}