KeyboardLockMode class Null safety

Represents a lock mode of a keyboard, such as KeyboardLockMode.capsLock.

A lock mode locks some of a keyboard's keys into a distinct mode of operation, depending on the lock settings selected. The status of the mode is toggled with each key down of its corresponding logical key. A KeyboardLockMode object is used to query whether this mode is enabled on the keyboard.

Only a limited number of modes are supported, which are enumerated as static members of this class. Manual constructing of this class is prohibited.

Annotations

Properties

hashCode int
The hash code for this object.
read-onlyinherited
logicalKey LogicalKeyboardKey
The logical key that triggers this lock mode.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

findLockByLogicalKey(LogicalKeyboardKey logicalKey) KeyboardLockMode?
Returns the KeyboardLockMode constant from the logical key, or null, if not found.

Constants

capsLock → const KeyboardLockMode
Represents the capital letters lock mode on the keyboard.
KeyboardLockMode._(LogicalKeyboardKey.capsLock)
numLock → const KeyboardLockMode
Represents the number lock mode on the keyboard.
KeyboardLockMode._(LogicalKeyboardKey.numLock)
scrollLock → const KeyboardLockMode
Represents the scrolling lock mode on the keyboard.
KeyboardLockMode._(LogicalKeyboardKey.scrollLock)