checkDeviceIsEarpiece method

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

Implementation

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