findKeyByKeyId method Null safety

LogicalKeyboardKey? findKeyByKeyId(
  1. int keyId
)

Returns the LogicalKeyboardKey constant that matches the given ID, or null, if not found.

Implementation

static LogicalKeyboardKey? findKeyByKeyId(int keyId) => _knownLogicalKeys[keyId];