getPhysicalKeyForPlatformKeyCode method

PhysicalKeyboardKey? getPhysicalKeyForPlatformKeyCode(
  1. int code
)

Returns the PhysicalKeyboardKey for platform specific key code for this keyboard layout or null if it could not have been determined.

Implementation

PhysicalKeyboardKey? getPhysicalKeyForPlatformKeyCode(int code) {
  final key = _platformToKey[code];
  return key != null ? PhysicalKeyboardKey(key.physical) : null;
}