getBluetoothDeviceType static method

String getBluetoothDeviceType(
  1. dynamic type
)

Implementation

static String getBluetoothDeviceType(BluetoothDeviceType type) {
  switch (type) {
    case BluetoothDeviceType.classic:
      return "classic";
    case BluetoothDeviceType.dual:
      return "dual";
    case BluetoothDeviceType.le:
      return "le";
    default:
      return "unknown";
  }
}