KeyRepeatEvent class Null safety
An event indicating that the user has been holding a key on the keyboard and causing repeated events.
See also:
- KeyDownEvent, a key event representing the user pressing a key.
- KeyUpEvent, a key event representing the user releasing a key.
- HardwareKeyboard, which produces this event.
Constructors
- KeyRepeatEvent({required PhysicalKeyboardKey physicalKey, required LogicalKeyboardKey logicalKey, String? character, required Duration timeStamp})
-
Creates a key event that represents the user pressing a key.
const
Properties
- character → String?
-
Returns the Unicode character (grapheme cluster) completed by this
keystroke, if any.
finalinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- logicalKey → LogicalKeyboardKey
-
Returns an object representing the logical key that was pressed.
finalinherited
- physicalKey → PhysicalKeyboardKey
-
Returns an object representing the physical location of this key.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- synthesized → bool
-
Whether this event is synthesized by Flutter to synchronize key states.
finalinherited
- timeStamp → Duration
-
Time of event, relative to an arbitrary start point.
finalinherited
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited