KeyEventSimulator class Null safety

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

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 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.