sendKeyEvent method

Future<ProcessResult> sendKeyEvent(
  1. KeyCode keyCode, {
  2. KeyEventType? type,
  3. InputSource? inputSource,
  4. bool debug = false,
})

Implementation

Future<io.ProcessResult> sendKeyEvent(
  KeyCode keyCode, {
  KeyEventType? type,
  InputSource? inputSource,
  bool debug = false,
}) async {
  final event = _makeKeyEvent(keyCode, eventType: type, inputSource: inputSource);
  return await exec(event, debug: debug);
}