isAltPressed property Null safety

bool isAltPressed

Returns true if a ALT modifier key was pressed at the time of this event, regardless of which side of the keyboard it is on.

Use isModifierPressed if you need to know which alt key was pressed.

Implementation

bool get isAltPressed => isModifierPressed(ModifierKey.altModifier);