debugName property

String? debugName

The debug string to print for this keyboard key, which will be null in release mode.

Implementation

String? get debugName {
  String? result;
  assert(() {
    result = _debugNames[usbHidUsage] ??
      'Key with ID 0x${usbHidUsage.toRadixString(16).padLeft(8, '0')}';
    return true;
  }());
  return result;
}