lookUpLayout method Null safety

LogicalKeyboardKey? lookUpLayout(
  1. PhysicalKeyboardKey physicalKey
)

Returns the logical key that corresponds to the given pressed physical key.

Returns null if the physical key is not currently pressed.

Implementation

LogicalKeyboardKey? lookUpLayout(PhysicalKeyboardKey physicalKey) => _pressedKeys[physicalKey];