KeyEventSimulator class abstract final

A class that serves as a namespace for a bunch of keyboard-key generation utilities.

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

transitMode KeyDataTransitMode
Returns the transit mode that simulated key events are constructed and delivered. For detailed introduction, see KeyDataTransitMode and its values.
no setter

Static Methods

getKeyData(LogicalKeyboardKey key, {required String platform, bool isDown = true, PhysicalKeyboardKey? physicalKey, String? character}) Map<String, dynamic>
Get a raw key data map given a LogicalKeyboardKey and a platform.
simulateKeyDownEvent(LogicalKeyboardKey key, {String? platform, PhysicalKeyboardKey? physicalKey, String? character}) Future<bool>
Simulates sending a hardware key down event.
simulateKeyRepeatEvent(LogicalKeyboardKey key, {String? platform, PhysicalKeyboardKey? physicalKey, String? character}) Future<bool>
Simulates sending a hardware key repeat event through the system channel.
simulateKeyUpEvent(LogicalKeyboardKey key, {String? platform, PhysicalKeyboardKey? physicalKey}) Future<bool>
Simulates sending a hardware key up event through the system channel.