getPhysicalKeyForLogicalKey method

PhysicalKeyboardKey? getPhysicalKeyForLogicalKey(
  1. LogicalKeyboardKey logicalKey
)

Returns the PhysicalKeyboardKey for given LogicalKeyboardKey for this keyboard layout or null if it could not have been determined.

Implementation

PhysicalKeyboardKey? getPhysicalKeyForLogicalKey(
    LogicalKeyboardKey logicalKey) {
  final key = _logicalToKey[logicalKey.keyId];
  return key != null ? PhysicalKeyboardKey(key.physical) : null;
}