majorDeviceClass property

String? majorDeviceClass

Implementation

String? get majorDeviceClass {
  if (value & 3 == 0) {
    return null;
  }
  int major = (value >> 8) & 31;
  if (deviceClassList.containsKey(major)) {
    // Strong cast to String?, maybe have problems
    return deviceClassList[major]![0] as String?;
  } else {
    return 'Reserved ${major.toRadixString(2)}b';
  }
}