pressKey method

Future<void> pressKey(
  1. KeyName key, {
  2. int count = 1,
  3. Set<KeyModifier> modifiers = const {},
})

Presses key count times, each press bracketed by modifiers. Throws UnsupportedBackendAction when the backend has no keyboard.

Implementation

Future<void> pressKey(KeyName key, {int count = 1, Set<KeyModifier> modifiers = const {}}) async =>
    throw UnsupportedBackendAction(label, 'pressKey: no keyboard on this backend');