ModifierKey enum

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

See also:

Constants

altModifier → const ModifierKey

The ALT modifier key.

Typically, there are two of these.

const ModifierKey(2)
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.

const ModifierKey(4)
controlModifier → const ModifierKey

The CTRL modifier key.

Typically, there are two of these.

const ModifierKey(0)
functionModifier → const ModifierKey

The FUNCTION (Fn) modifier key.

Typically, there is one of these.

const ModifierKey(7)
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.

const ModifierKey(3)
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.

const ModifierKey(5)
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.

const ModifierKey(6)
shiftModifier → const ModifierKey

The SHIFT modifier key.

Typically, there are two of these.

const ModifierKey(1)
symbolModifier → const ModifierKey

The SYMBOL modifier key.

Typically, there is one of these.

const ModifierKey(8)
values → const List<ModifierKey>

A constant List of the values in this enum, in order of their declaration.

const List<ModifierKey>

Properties

index int

The integer index of this enum.

final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited