KeyStroke class
A representation of a keystroke.
This class is immutable. Use the factory constructors to create instances.
Constructors
- KeyStroke.control(ControlCharacter controlChar)
-
Creates a keystroke for a control character.
const
- KeyStroke.printable(String char)
-
Creates a keystroke for a printable character.
const
Properties
- char → String
-
The printable character, if this is a printable keystroke.
final
- controlChar → ControlCharacter
-
The control character, if this is a control keystroke.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isControl → bool
-
Whether this keystroke represents a control character.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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.
inherited