pressKey method

Future<void> pressKey(
  1. int keyCode, {
  2. bool shift = false,
  3. bool ctrl = false,
  4. bool alt = false,
})

Presses a key, optionally with modifier keys.

Implementation

Future<void> pressKey(
  int keyCode, {
  bool shift = false,
  bool ctrl = false,
  bool alt = false,
}) async {
  config.logger('pressKey($keyCode)');
  await _channel.invokeMethod<void>('pressKey', {
    'keyCode': keyCode,
    'shift': shift,
    'ctrl': ctrl,
    'alt': alt,
  });
}