findLockByLogicalKey method Null safety

KeyboardLockMode? findLockByLogicalKey(
  1. LogicalKeyboardKey logicalKey
)

Returns the KeyboardLockMode constant from the logical key, or null, if not found.

Implementation

static KeyboardLockMode? findLockByLogicalKey(LogicalKeyboardKey logicalKey) => _knownLockModes[logicalKey.keyId];