ModifierKey enum Null safety

An enum describing the type of modifier key that is being pressed.

See also:

Inheritance

Constructors

ModifierKey()
const

Values

controlModifier → const ModifierKey

The CTRL modifier key.

Typically, there are two of these.

ModifierKey()
shiftModifier → const ModifierKey

The SHIFT modifier key.

Typically, there are two of these.

ModifierKey()
altModifier → const ModifierKey

The ALT modifier key.

Typically, there are two of these.

ModifierKey()
metaModifier → const ModifierKey

The META modifier key.

Typically, there are two of these. This is, for example, the Windows key on Windows (⊞), the Command (⌘) key on macOS and iOS, and the Search (🔍) key on Android.

ModifierKey()
capsLockModifier → const ModifierKey

The CAPS LOCK modifier key.

Typically, there is one of these. Only shown as "pressed" when the caps lock is on, so on a key up when the mode is turned on, on each key press when it's enabled, and on a key down when it is turned off.

ModifierKey()
numLockModifier → const ModifierKey

The NUM LOCK modifier key.

Typically, there is one of these. Only shown as "pressed" when the num lock is on, so on a key up when the mode is turned on, on each key press when it's enabled, and on a key down when it is turned off.

ModifierKey()
scrollLockModifier → const ModifierKey

The SCROLL LOCK modifier key.

Typically, there is one of these. Only shown as "pressed" when the scroll lock is on, so on a key up when the mode is turned on, on each key press when it's enabled, and on a key down when it is turned off.

ModifierKey()
functionModifier → const ModifierKey

The FUNCTION (Fn) modifier key.

Typically, there is one of these.

ModifierKey()
symbolModifier → const ModifierKey

The SYMBOL modifier key.

Typically, there is one of these.

ModifierKey()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
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

Constants

values → const List<ModifierKey>
A constant List of the values in this enum, in order of their declaration.
[controlModifier, shiftModifier, altModifier, metaModifier, capsLockModifier, numLockModifier, scrollLockModifier, functionModifier, symbolModifier]