KeyModifiers class final Event Handling
Represents key modifiers (shift, control, alt, etc).
- Annotations
Constructors
- KeyModifiers({bool shiftKey = false, bool controlKey = false, bool altKey = false})
-
Creates a set of key modifiers.
const
Properties
- altKey → bool
-
Whether the alt key is pressed.
no setter
- controlKey → bool
-
Whether the control key is pressed.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shiftKey → bool
-
Whether the shift key is pressed.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- none → const KeyModifiers
- A set of key modifiers with no flags set.