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.
- hashCode → int
The hash code for this object.
- logicalKey → LogicalKeyboardKey
The logical key that triggers this lock mode.
- runtimeType → Type
A representation of the runtime type of the object.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
) → String
A string representation of this object.
Object other) → bool
The equality operator.
LogicalKeyboardKey logicalKey) → KeyboardLockMode?
- Returns the KeyboardLockMode constant from the logical key, or null, if not found.
- capsLock → const KeyboardLockMode
Represents the capital letters lock mode on the keyboard.
- numLock → const KeyboardLockMode
Represents the number lock mode on the keyboard.
- scrollLock → const KeyboardLockMode
Represents the scrolling lock mode on the keyboard.