checkDeviceIsBluetooth method

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

Implementation

bool checkDeviceIsBluetooth({required AudioDevice device}) {
  if (device.type == AudioDeviceType.bluetoothA2dp || device.type == AudioDeviceType.bluetoothLe || device.type == AudioDeviceType.bluetoothSco) {
    return true;
  }
  return false;
}