pressKey method
Future<void>
pressKey(
- KeyName key, {
- int count = 1,
- Set<
KeyModifier> modifiers = const {},
override
Presses key count times, each press bracketed by modifiers. Throws UnsupportedBackendAction when the backend has no keyboard.
Implementation
@override
Future<void> pressKey(KeyName key, {int count = 1, Set<KeyModifier> modifiers = const {}}) => _deliver(
(f) async => modifiers.isEmpty ? f.key(key.name, count: count) : FlutterInputMiss.unsupportedKey,
() => native.pressKey(key, count: count, modifiers: modifiers),
);